Skip to content

Commit a069741

Browse files
committed
Show correct output line
1 parent 6badb4a commit a069741

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/typeanal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2006,7 +2006,7 @@ def check_unpacks_in_list(self, items: list[Type]) -> list[Type]:
20062006

20072007
if num_unpacks > 1:
20082008
assert final_unpack is not None
2009-
self.fail("More than one Unpack in a type is not allowed", final_unpack)
2009+
self.fail("More than one Unpack in a type is not allowed", final_unpack.type)
20102010
return new_items
20112011

20122012
def tuple_type(self, items: list[Type], line: int, column: int) -> TupleType:

0 commit comments

Comments
 (0)