Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tensorflow_datasets/core/dataset_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
with epy.lazy_imports():
# pylint: disable=g-import-not-at-top
from etils import epath
import importlib_resources
from importlib.resources import abc as importlib_resources_abc
import termcolor

from tensorflow_datasets.core import constants
Expand Down Expand Up @@ -342,7 +342,7 @@ def code_path(cls) -> epath.Path | None:
# do not have `.parts`.
if (
isinstance(path, epath.resource_utils.ResourcePath)
or isinstance(path, importlib_resources.abc.Traversable)
or isinstance(path, importlib_resources_abc.Traversable)
or path.parts
):
modules[-1] += ".py"
Expand Down
Loading