From 04973b10912ed565e32e22aacfa3835fbadd3c9d Mon Sep 17 00:00:00 2001
From: "Jason R. Coombs" <jaraco@jaraco.com>
Date: Fri, 22 Oct 2021 18:43:13 -0400
Subject: [PATCH] Move definition of Resource to _legacy.

---
 importlib_resources/__init__.py | 2 +-
 importlib_resources/_common.py  | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/importlib_resources/__init__.py b/importlib_resources/__init__.py
index 2468f575..15f6b26b 100644
--- a/importlib_resources/__init__.py
+++ b/importlib_resources/__init__.py
@@ -4,7 +4,6 @@
     as_file,
     files,
     Package,
-    Resource,
 )
 
 from ._legacy import (
@@ -15,6 +14,7 @@
     read_text,
     is_resource,
     path,
+    Resource,
 )
 
 from importlib_resources.abc import ResourceReader
diff --git a/importlib_resources/_common.py b/importlib_resources/_common.py
index 24df8d39..a12e2c75 100644
--- a/importlib_resources/_common.py
+++ b/importlib_resources/_common.py
@@ -12,7 +12,6 @@
 from ._compat import wrap_spec
 
 Package = Union[types.ModuleType, str]
-Resource = Union[str, os.PathLike]
 
 
 def files(package):