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