-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Labels
bugmypy got something wrongmypy got something wrongperformancepriority-1-normalrefactoringChanging mypy's internalsChanging mypy's internalstopic-union-types
Description
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.
Akuli
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrongperformancepriority-1-normalrefactoringChanging mypy's internalsChanging mypy's internalstopic-union-types