From 40557f5d5d140f397aa7a006cf189f45973db844 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 3 Oct 2023 01:26:38 +0200 Subject: [PATCH] Replaced one more occurrence of ` | None` syntax. --- platypush/utils/mock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platypush/utils/mock.py b/platypush/utils/mock.py index 11ea777e6..0d43957e7 100644 --- a/platypush/utils/mock.py +++ b/platypush/utils/mock.py @@ -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 + "."):