mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Fixes to typing and typing_extensions stubs (#11086)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user