mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Revert addition of class_getitem to PathLike (#6591)
This was added in #5869 This breaks all PathLike classes that don't have class_getitem
This commit is contained in:
@@ -331,8 +331,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: ...
|
||||
|
||||
@overload
|
||||
def listdir(path: str | None = ...) -> list[str]: ...
|
||||
|
||||
Reference in New Issue
Block a user