Skip to content

Commit 8bf049f

Browse files
committed
.
1 parent 8f67a54 commit 8bf049f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mypy/checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8685,7 +8685,7 @@ def flatten_types_if_tuple(t: Type) -> list[Type]:
86858685
"""Flatten a nested sequence of tuples into one list of nodes."""
86868686
t = get_proper_type(t)
86878687
if isinstance(t, UnionType):
8688-
return [b for a in t.items for b in flatten_types(a)]
8688+
return [b for a in t.items for b in flatten_types_if_tuple(a)]
86898689
if isinstance(t, TupleType):
86908690
return [b for a in t.items for b in flatten_types_if_tuple(a)]
86918691
elif is_named_instance(t, "builtins.tuple"):

0 commit comments

Comments
 (0)