8000 Fix generator comprehension in meet.py (#17969) · python/mypy@10f3ce5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 10f3ce5

Browse files
authored
Fix generator comprehension in meet.py (#17969)
Since mypyc will treat these as list comprehensions
1 parent eb816b0 commit 10f3ce5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypy/meet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ def is_enum_overlapping_union(x: ProperType, y: ProperType) -> bool:
243243
and x.type.is_enum
244244
and isinstance(y, UnionType)
245245
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())
246+
isinstance(p := get_proper_type(z), LiteralType) and x.type == p.fallback.type
247+
for z in y.relevant_items()
248248
)
249249
)
250250

0 commit comments

Comments
 (0)
0