Skip to content

Commit 933c25b

Browse files
hauntsaninjaIvan Levkivskyi
authored and
Ivan Levkivskyi
committed
[0.930 backport] Fix PathLike regression (#11775)
Backport of python/typeshed#6591 Co-authored-by: hauntsaninja <>
1 parent b944746 commit 933c25b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mypy/typeshed/stdlib/os/__init__.pyi

-2
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,6 @@ class stat_result:
309309
@runtime_checkable
310310
class PathLike(Protocol[_AnyStr_co]):
311311
def __fspath__(self) -> _AnyStr_co: ...
312-
if sys.version_info >= (3, 9):
313-
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
314312

315313
_FdOrAnyPath = Union[int, StrOrBytesPath]
316314

0 commit comments

Comments
 (0)