Skip to content

Commit 121d8e1

Browse files
committed
add error message to assert
1 parent 31a0401 commit 121d8e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/join.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ def visit_tuple_type(self, t: TupleType) -> ProperType:
612612
fallback = self.instance_joiner.join_instances(
613613
mypy.typeops.tuple_fallback(self.s), mypy.typeops.tuple_fallback(t)
614614
)
615-
assert isinstance(fallback, Instance)
615+
assert isinstance(fallback, Instance), f"s = {self.s}, t = {t}, f = {fallback}"
616616
items = self.join_tuples(self.s, t)
617617
if items is not None:
618618
return TupleType(items, fallback)

0 commit comments

Comments
 (0)