We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2fe885 commit 59391acCopy full SHA for 59391ac
dynamic_library/__init__.py
@@ -11,6 +11,7 @@
11
import warnings
12
13
from collections.abc import Sequence
14
+from typing import Optional
15
16
import dynamic_library._import
17
@@ -34,7 +35,7 @@ def _get_module_path(name: str) -> list[str]:
34
35
return module.__path__
36
37
-def _find_library(entrypoint: importlib_metadata.EntryPoint) -> str | None:
38
+def _find_library(entrypoint: importlib_metadata.EntryPoint) -> Optional[str]:
39
found = []
40
for path in _get_module_path(entrypoint.value):
41
lib = pathlib.Path(path, f'lib{entrypoint.name}{_EXT}')
0 commit comments