Skip to content

Commit 6c1bc3c

Browse files
committed
Rely on Literal from stdlib.
1 parent 883380a commit 6c1bc3c

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

importlib_resources/abc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
Iterable,
99
Iterator,
1010
NoReturn,
11+
Literal,
1112
Optional,
1213
Protocol,
1314
Text,
@@ -17,8 +18,6 @@
1718
runtime_checkable,
1819
)
1920

20-
from typing_extensions import Literal
21-
2221
StrPath = Union[str, os.PathLike[str]]
2322

2423
__all__ = ["ResourceReader", "Traversable", "TraversableResources"]

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ classifiers = [
2222
requires-python = ">=3.9"
2323
dependencies = [
2424
"zipp >= 3.1.0; python_version < '3.10'",
25-
"typing-extensions >= 3.10",
2625
]
2726
dynamic = ["version"]
2827

0 commit comments

Comments
 (0)