Skip to content

Commit

Permalink
✅ Fix Traversable import for minimum Python version
Browse files Browse the repository at this point in the history
  • Loading branch information
shnizzedy committed Sep 4, 2024
1 parent 990d54a commit 7391745
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CPAC/utils/tests/configs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
"""Configs for testing."""

from importlib import resources
from importlib.resources.abc import Traversable

try:
from importlib.resources.abc import Traversable
except ModuleNotFoundError: # TODO: Remove this block once minimum Python version includes `importlib.resources.abc`
from importlib.abc import Traversable

import yaml

Expand Down

0 comments on commit 7391745

Please sign in to comment.