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-tuples.test
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1824,3 +1824,10 @@ class tuple_aa_subclass(Tuple[A, A]): ...
1824
1824
1825
1825
inst_tuple_aa_subclass: tuple_aa_subclass = tuple_aa_subclass((A(), A()))[:] # E: Incompatible types in assignment (expression has type "tuple[A, A]", variable has type "tuple_aa_subclass")
1826
1826
[builtins fixtures/tuple.pyi]
1827
+
1828
+
[case testTuplePassedParameters]
1829
+
from typing_extensions import Concatenate
1830
+
1831
+
def c(t: tuple[Concatenate[int, ...]]) -> None: # E: Cannot use "[int, VarArg(Any), KwArg(Any)]" for tuple, only for ParamSpec
0 commit comments