Skip to content

Commit

Permalink
Move definition of Resource to _legacy.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Oct 22, 2021
1 parent 64d03de commit 04973b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion importlib_resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
as_file,
files,
Package,
Resource,
)

from ._legacy import (
Expand All @@ -15,6 +14,7 @@
read_text,
is_resource,
path,
Resource,
)

from importlib_resources.abc import ResourceReader
Expand Down
1 change: 0 additions & 1 deletion importlib_resources/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from ._compat import wrap_spec

Package = Union[types.ModuleType, str]
Resource = Union[str, os.PathLike]


def files(package):
Expand Down

0 comments on commit 04973b1

Please sign in to comment.