You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test-data/unit/check-typevar-tuple.test
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2225,3 +2225,13 @@ bar(*keys, 1) # OK
2225
2225
reveal_type(baz(keys, 1)) # N: Revealed type is "builtins.object"
2226
2226
reveal_type(baz(*keys, 1)) # N: Revealed type is "builtins.int"
2227
2227
[builtins fixtures/tuple.pyi]
2228
+
2229
+
[case testVariadicTupleContextNoCrash]
2230
+
from typing import Tuple, Unpack
2231
+
2232
+
x: Tuple[int, Unpack[Tuple[int, ...]]] = () # E: Incompatible types in assignment (expression has type "Tuple[()]", variable has type "Tuple[int, Unpack[Tuple[int, ...]]]")
0 commit comments