Skip to content

Commit

Permalink
Narrow the versions under which Traversable is imported from importli…
Browse files Browse the repository at this point in the history
…b.abc. Fixes DeprecationWarning.
  • Loading branch information
jaraco committed Aug 11, 2024
1 parent 579be51 commit 1184111
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/compat/py38.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import sys


if sys.version_info >= (3, 9):
from importlib.abc import Traversable
else: # pragma: no cover
if (3, 9) <= sys.version_info < (3, 11): # pragma: no cover
from importlib.abc import Traversable # type: ignore
elif sys.version_info < (3, 9): # pragma: no cover
from importlib_resources.abc import Traversable


Expand Down

0 comments on commit 1184111

Please sign in to comment.