mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-07 12:44:33 +08:00
Fixes to typing and typing_extensions stubs (#11086)
This commit is contained in:
1 parent
1d3a18c6da
commit
ef346aba0d
7 files changed
+28
-20
No files matched your search
+6
-1
@@ -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