File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,9 @@ if sys.version_info >= (3, 11):
28
28
"Tuple" ,
29
29
"Type" ,
30
30
"TypeVar" ,
31
+ "TypeVarTuple" ,
31
32
"Union" ,
33
+ "Unpack" ,
32
34
"AbstractSet" ,
33
35
"ByteString" ,
34
36
"Container" ,
@@ -80,6 +82,7 @@ if sys.version_info >= (3, 11):
80
82
"TextIO" ,
81
83
"AnyStr" ,
82
84
"assert_never" ,
85
+ "assert_type" ,
83
86
"cast" ,
84
87
"final" ,
85
88
"get_args" ,
@@ -524,6 +527,12 @@ if sys.version_info >= (3, 8):
524
527
if sys .version_info >= (3 , 11 ):
525
528
Self : _SpecialForm
526
529
Never : _SpecialForm = ...
530
+ Unpack : _SpecialForm
531
+
532
+ class TypeVarTuple :
533
+ __name__ : str
534
+ def __init__ (self , name : str ) -> None : ...
535
+ def __iter__ (self ) -> Any : ...
527
536
528
537
if sys .version_info < (3 , 7 ):
529
538
class GenericMeta (type ): ...
@@ -1176,6 +1185,7 @@ def cast(typ: object, val: Any) -> Any: ...
1176
1185
if sys .version_info >= (3 , 11 ):
1177
1186
def reveal_type (__obj : _T ) -> _T : ...
1178
1187
def assert_never (__arg : Never ) -> Never : ...
1188
+ def assert_type (__val : _T , __typ : Any ) -> _T : ...
1179
1189
1180
1190
# Type constructors
1181
1191
You can’t perform that action at this time.
0 commit comments