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 eb816b0 commit 10f3ce5Copy full SHA for 10f3ce5
mypy/meet.py
@@ -243,8 +243,8 @@ def is_enum_overlapping_union(x: ProperType, y: ProperType) -> bool:
243
and x.type.is_enum
244
and isinstance(y, UnionType)
245
and any(
246
- isinstance(p, LiteralType) and x.type == p.fallback.type
247
- for p in (get_proper_type(z) for z in y.relevant_items())
+ isinstance(p := get_proper_type(z), LiteralType) and x.type == p.fallback.type
+ for z in y.relevant_items()
248
)
249
250
0 commit comments