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.
1 parent 95eb26c commit f914befCopy full SHA for f914bef
mypy/meet.py
@@ -346,7 +346,12 @@ def is_overlapping_types(
346
seen_types = set()
347
elif (left, right) in seen_types:
348
return True
349
- if isinstance(left, TypeAliasType) or isinstance(right, TypeAliasType):
+ if (
350
+ isinstance(left, TypeAliasType)
351
+ and left.is_recursive
352
+ or isinstance(right, TypeAliasType)
353
+ and right.is_recursive
354
+ ):
355
seen_types.add((left, right))
356
357
left, right = get_proper_types((left, right))
0 commit comments