forked from platypush/platypush
Replaced one more occurrence of <type> | None
syntax.
This commit is contained in:
parent
4da3c13976
commit
40557f5d5d
1 changed files with 2 additions and 2 deletions
|
@ -146,9 +146,9 @@ class MockFinder(MetaPathFinder):
|
|||
def find_spec(
|
||||
self,
|
||||
fullname: str,
|
||||
path: Sequence[Optional[bytes]] | None,
|
||||
path: Optional[Sequence[Optional[bytes]]] = None,
|
||||
target: Optional[ModuleType] = None,
|
||||
) -> ModuleSpec | None:
|
||||
) -> Optional[ModuleSpec]:
|
||||
for modname in self.modules:
|
||||
# check if fullname is (or is a descendant of) one of our targets
|
||||
if modname == fullname or fullname.startswith(modname + "."):
|
||||
|
|
Loading…
Reference in a new issue