Skip to content

Commit 59391ac

Browse files
committed
dl: fix Python 3.9 syntax
Signed-off-by: Filipe Laíns <lains@riseup.net>
1 parent b2fe885 commit 59391ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dynamic_library/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import warnings
1212

1313
from collections.abc import Sequence
14+
from typing import Optional
1415

1516
import dynamic_library._import
1617

@@ -34,7 +35,7 @@ def _get_module_path(name: str) -> list[str]:
3435
return module.__path__
3536

3637

37-
def _find_library(entrypoint: importlib_metadata.EntryPoint) -> str | None:
38+
def _find_library(entrypoint: importlib_metadata.EntryPoint) -> Optional[str]:
3839
found = []
3940
for path in _get_module_path(entrypoint.value):
4041
lib = pathlib.Path(path, f'lib{entrypoint.name}{_EXT}')

0 commit comments

Comments
 (0)