From 933c25b9d4f66235929faa0b57fc2260d9f3f389 Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Fri, 17 Dec 2021 02:30:58 -0800 Subject: [PATCH] [0.930 backport] Fix PathLike regression (#11775) Backport of https://github.com/python/typeshed/pull/6591 Co-authored-by: hauntsaninja <> --- mypy/typeshed/stdlib/os/__init__.pyi | 2 -- 1 file changed, 2 deletions(-) diff --git a/mypy/typeshed/stdlib/os/__init__.pyi b/mypy/typeshed/stdlib/os/__init__.pyi index 9af9aa34a6ca..712466c47a98 100644 --- a/mypy/typeshed/stdlib/os/__init__.pyi +++ b/mypy/typeshed/stdlib/os/__init__.pyi @@ -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]