Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions conformance/results/ty/generics_typevartuple_concat.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
conformance_automated = "Fail"
conformant = "Unsupported"
errors_diff = """
Line 52: Unexpected errors ['generics_typevartuple_concat.py:52:1: error[type-assertion-failure] Type `tuple[@Todo(TypeVarTuple), ...]` does not match asserted type `tuple[int, bool, str]`']
Line 53: Unexpected errors ['generics_typevartuple_concat.py:53:5: error[type-assertion-failure] Type `tuple[@Todo(TypeVarTuple), ...]` does not match asserted type `tuple[int, bool, str]`']
"""
output = """
generics_typevartuple_concat.py:52:1: error[type-assertion-failure] Type `tuple[@Todo(TypeVarTuple), ...]` does not match asserted type `tuple[int, bool, str]`
generics_typevartuple_concat.py:53:5: error[type-assertion-failure] Type `tuple[@Todo(TypeVarTuple), ...]` does not match asserted type `tuple[int, bool, str]`
"""
5 changes: 3 additions & 2 deletions conformance/tests/generics_typevartuple_concat.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ def prefix_tuple(x: T, y: tuple[*Ts]) -> tuple[T, *Ts]:
raise NotImplementedError


z = prefix_tuple(x=0, y=(True, "a"))
assert_type(z, tuple[int, bool, str])
def call_prefix_tuple(x: int, y: bool, z: str):
result = prefix_tuple(x=x, y=(y, z))
assert_type(result, tuple[int, bool, str])


def move_first_element_to_last(tup: tuple[T, *Ts]) -> tuple[*Ts, T]:
Expand Down