Skip to content

Commit

Permalink
Merge pull request #324 from pstjohn/patch-1
Browse files Browse the repository at this point in the history
Add typing-extensions as a dependency
  • Loading branch information
jaraco authored Jan 3, 2025
2 parents 78c4bda + 6569354 commit 1440809
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions importlib_resources/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Iterable,
Iterator,
NoReturn,
Literal,
Optional,
Protocol,
Text,
Expand All @@ -17,8 +18,6 @@
runtime_checkable,
)

from typing_extensions import Literal

StrPath = Union[str, os.PathLike[str]]

__all__ = ["ResourceReader", "Traversable", "TraversableResources"]
Expand Down
1 change: 1 addition & 0 deletions newsfragments/323.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Replaced reference to typing_extensions with stdlib Literal.

0 comments on commit 1440809

Please sign in to comment.