Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix self-check
  • Loading branch information
ilevkivskyi committed Jul 31, 2022
commit 6771dd46039ed67aa454aa8434acd4827c97d02c
2 changes: 1 addition & 1 deletion mypy/typeops.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ def make_simplified_union(
items = flatten_nested_unions(items, handle_type_alias_type=True)

# Step 2: remove redundant unions
simplified_set = _remove_redundant_union_items(items, keep_erased)
simplified_set: Sequence[Type] = _remove_redundant_union_items(items, keep_erased)

# Step 3: If more than one literal exists in the union, try to simplify
if (
Expand Down