We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
is_subtype
is_overlapping
1 parent 80eb33f commit db7473eCopy full SHA for db7473e
mypy/meet.py
@@ -655,9 +655,7 @@ def are_tuples_overlapping(
655
):
656
return True
657
else:
658
- return is_subtype(left.partial_fallback, right.partial_fallback) or is_subtype(
659
- right.partial_fallback, left.partial_fallback
660
- )
+ return is_overlapping(left.partial_fallback, right.partial_fallback)
661
662
663
def expand_tuple_if_possible(tup: TupleType, target: int) -> TupleType:
0 commit comments