Skip to content

Commit

Permalink
do not specify sub-type with os.PathLike
Browse files Browse the repository at this point in the history
Get a "TypeError: 'ABCMeta' object is not subscriptable" on Python 3.8
  • Loading branch information
jborbely committed Mar 27, 2024
1 parent f901016 commit 02ddc1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msl/loadlib/load_library.py
Expand Up @@ -29,7 +29,7 @@
# using TypeVar is equivalent for < 3.11
Self = TypeVar('Self', bound='LoadLibrary')

PathLike = TypeVar('PathLike', str, bytes, os.PathLike[str], os.PathLike[bytes])
PathLike = TypeVar('PathLike', str, bytes, os.PathLike)
"""A :term:`path-like object`."""


Expand Down

0 comments on commit 02ddc1e

Please sign in to comment.