Skip to content

Get rid of make_simplified_union() except in error messages #8624

Open
@ilevkivskyi

Description

@ilevkivskyi

It used to cause various issues and is still causing known bugs (like false negatives in per-file strict optional when map_instance_to_supertype() is involved). Ideally we should replace all calls to it (except in error message formatting code) with UnionType.make_union(). Union constructor already flattens nested unions, we can also make it remove exact duplicates minimize perf impact.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions