8000 Merge pull request #324 from pstjohn/patch-1 · python/importlib_resources@1440809 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1440809

Browse files
authored
Merge pull request #324 from pstjohn/patch-1
Add typing-extensions as a dependency
2 parents 78c4bda + 6569354 commit 1440809

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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"]

newsfragments/323.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Replaced reference to typing_extensions with stdlib Literal.

0 commit comments

Comments
 (0)
0