From af7da511825b694fbdcfb4b94440fd45e830eee0 Mon Sep 17 00:00:00 2001 From: hauntsaninja <> Date: Thu, 16 Dec 2021 14:44:00 -0800 Subject: [PATCH] [0.930 backport] Fix PathLike regression Backport of https://github.com/python/typeshed/pull/6591 --- 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 b432f6931a3f..d65681a46c3f 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]