diff --git a/importlib_resources/_legacy.py b/importlib_resources/_legacy.py index caa7078f..1d5d3f1f 100644 --- a/importlib_resources/_legacy.py +++ b/importlib_resources/_legacy.py @@ -9,7 +9,7 @@ from . import _common Package = Union[types.ModuleType, str] -Resource = Union[str, os.PathLike] +Resource = str def deprecated(func):