Skip to content

Commit

Permalink
Merge pull request #1333 from jhlegarreta/FixTraversableResourcesModule
Browse files Browse the repository at this point in the history
RF: Fix for `abc` library `Traversable` class module
  • Loading branch information
effigies authored Jun 27, 2024
2 parents adedf7b + 7caef99 commit 0bd95cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nibabel/testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
from .np_features import memmap_after_ufunc

try:
from importlib.abc import Traversable
from importlib.resources import as_file, files
from importlib.resources.abc import Traversable
except ImportError: # PY38
from importlib_resources import as_file, files
from importlib_resources.abc import Traversable
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ requires-python = ">=3.8"
dependencies = [
"numpy >=1.20",
"packaging >=17",
"importlib_resources >=1.3; python_version < '3.9'",
"importlib_resources >=5.12; python_version < '3.12'",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
Expand Down

0 comments on commit 0bd95cd

Please sign in to comment.