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 822dd30 commit d8a6f94Copy full SHA for d8a6f94
mypy/typeops.py
@@ -603,7 +603,7 @@ def make_simplified_union(
603
simplified_set = try_contracting_literals_in_union(simplified_set)
604
605
# Step 5: Combine Literals and Instances with LKVs, e.g. Literal[1]?, Literal[1] -> Literal[1]?
606
- proper_items: list[ProperType] = list(map(get_proper_type, simplified_set))
+ proper_items: list[ProperType] = [get_proper_type(t) for t in simplified_set]
607
last_known_values: list[LiteralType | None] = [
608
p_t.last_known_value if isinstance(p_t, Instance) else None for p_t in proper_items
609
]
0 commit comments