8000 workaround crashing mypy · python/cpython@7cd07f1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7cd07f1

Browse files
committed
workaround crashing mypy
1 parent e596130 commit 7cd07f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/pathlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class UnsupportedOperation(NotImplementedError):
5353
pass
5454

5555

56-
class _PathParents(Sequence):
56+
class _PathParents(Sequence["PurePath"]):
5757
"""This object provides sequence-like access to the logical ancestors
5858
of a path. Don't try to construct it yourself."""
5959
__slots__ = ('_path', '_drv', '_root', '_tail')

0 commit comments

Comments
 (0)
0