Skip to content

Commit db7473e

Browse files
committed
Switch from is_subtype to is_overlapping
1 parent 80eb33f commit db7473e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mypy/meet.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -655,9 +655,7 @@ def are_tuples_overlapping(
655655
):
656656
return True
657657
else:
658-
return is_subtype(left.partial_fallback, right.partial_fallback) or is_subtype(
659-
right.partial_fallback, left.partial_fallback
660-
)
658+
return is_overlapping(left.partial_fallback, right.partial_fallback)
661659

662660

663661
def expand_tuple_if_possible(tup: TupleType, target: int) -> TupleType:

0 commit comments

Comments
 (0)