Skip to content

Commit 6a8afdc

Browse files
author
Deepak kudi
committed
Update Concatenate tuple test expectation
1 parent 3eeb47b commit 6a8afdc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test-data/unit/check-tuples.test

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1835,6 +1835,7 @@ inst_tuple_aa_subclass: tuple_aa_subclass = tuple_aa_subclass((A(), A()))[:] #
18351835
[case testTuplePassedParameters]
18361836
from typing_extensions import Concatenate
18371837

1838-
def c(t: tuple[Concatenate[int, ...]]) -> None: # E: Cannot use "[int, VarArg(Any), KwArg(Any)]" for tuple, only for ParamSpec
1838+
def c(t: tuple[Concatenate[int, ...]]) -> None: # E: Invalid location for Concatenate \
1839+
# N: You can use Concatenate as the first argument to Callable
18391840
reveal_type(t) # N: Revealed type is "tuple[Any]"
18401841
[builtins fixtures/tuple.pyi]

0 commit comments

Comments
 (0)