From dec0396796bddc64c90b4e5d22b3debb2b02954c Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Sun, 25 Feb 2024 15:12:30 -0800 Subject: [PATCH] undo accidental commit --- typeshed_client/typeshed/typing.pyi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/typeshed_client/typeshed/typing.pyi b/typeshed_client/typeshed/typing.pyi index 38b1cd79..5d01be53 100644 --- a/typeshed_client/typeshed/typing.pyi +++ b/typeshed_client/typeshed/typing.pyi @@ -280,7 +280,11 @@ if sys.version_info >= (3, 10): class NewType: def __init__(self, name: str, tp: Any) -> None: ... - def __call__(self, __x: _T) -> _T: ... + if sys.version_info >= (3, 11): + @staticmethod + def __call__(__x: _T) -> _T: ... + else: + def __call__(self, x: _T) -> _T: ... def __or__(self, other: Any) -> _SpecialForm: ... def __ror__(self, other: Any) -> _SpecialForm: ...