Skip to content

Commit dec0396

Browse files
committed
undo accidental commit
1 parent 76b370b commit dec0396

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

typeshed_client/typeshed/typing.pyi

+5-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,11 @@ if sys.version_info >= (3, 10):
280280

281281
class NewType:
282282
def __init__(self, name: str, tp: Any) -> None: ...
283-
def __call__(self, __x: _T) -> _T: ...
283+
if sys.version_info >= (3, 11):
284+
@staticmethod
285+
def __call__(__x: _T) -> _T: ...
286+
else:
287+
def __call__(self, x: _T) -> _T: ...
284288

285289
def __or__(self, other: Any) -> _SpecialForm: ...
286290
def __ror__(self, other: Any) -> _SpecialForm: ...

0 commit comments

Comments
 (0)