Fixes to typing and typing_extensions stubs (#11086)

This commit is contained in:
Alex Waygood
2023-11-29 19:00:58 +00:00
committed by GitHub
parent 1d3a18c6da
commit ef346aba0d
7 changed files with 28 additions and 20 deletions

View File

@@ -281,7 +281,12 @@ 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: ...
__supertype__: type