Skip to content

Commit 6376499

Browse files
committed
Try to avoid set contains
1 parent 5f26e71 commit 6376499

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/meet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ def is_overlapping_types(
329329

330330
if seen_types is None:
331331
seen_types = set()
332-
if (left, right) in seen_types:
332+
elif (left, right) in seen_types:
333333
return True
334334
if isinstance(left, TypeAliasType) and isinstance(right, TypeAliasType):
335335
seen_types.add((left, right))

0 commit comments

Comments
 (0)