Skip to content

Commit

Permalink
[0.930 backport] Fix PathLike regression (#11775)
Browse files Browse the repository at this point in the history
Backport of python/typeshed#6591

Co-authored-by: hauntsaninja <>
  • Loading branch information
hauntsaninja authored Dec 17, 2021
1 parent 5919e92 commit 7830d6d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mypy/typeshed/stdlib/os/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,6 @@ class stat_result:
@runtime_checkable
class PathLike(Protocol[_AnyStr_co]):
def __fspath__(self) -> _AnyStr_co: ...
if sys.version_info >= (3, 9):
def __class_getitem__(cls, item: Any) -> GenericAlias: ...

_FdOrAnyPath = Union[int, StrOrBytesPath]

Expand Down

0 comments on commit 7830d6d

Please sign in to comment.