Skip to content

Commit 6fe89be

Browse files
committed
nit
1 parent 53b58ac commit 6fe89be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mypy/checkpattern.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def visit_sequence_pattern(self, o: SequencePattern) -> PatternType:
318318
if isinstance(current_type, UnionType):
319319
union_items = list(current_type.items)
320320
union_items[union_index] = update_tuple_type
321-
current_type = UnionType.make_union(items=union_items)
321+
current_type = get_proper_type(UnionType.make_union(items=union_items))
322322
else:
323323
current_type = update_tuple_type
324324
# If we only got tuples we can't match, then exit early

0 commit comments

Comments
 (0)