Skip to content

Commit

Permalink
fix traversable import
Browse files Browse the repository at this point in the history
  • Loading branch information
grst committed Nov 19, 2024
1 parent b86f6f6 commit 2404868
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/dso/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@
from collections.abc import Sequence
from functools import cache
from importlib import resources
from importlib.resources.abc import Traversable

try:
# has been added in Python 3.11
from importlib.resources.abc import Traversable
except ImportError:
# will be removed in Python 3.14
from importlib.abc import Traversable
from os import environ
from pathlib import Path
from typing import Literal
Expand Down

0 comments on commit 2404868

Please sign in to comment.