Replaced one more occurrence of <type> | None syntax.

This commit is contained in:
Fabio Manganiello 2023-10-03 01:26:38 +02:00
parent 4da3c13976
commit 40557f5d5d
Signed by: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -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 + "."):