You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#15192
The following code optimises make_simplified_union in the common case
that there are exact duplicates in the union. In this regard, this is
similar to #15104
There's a behaviour change in one unit test. I think it's good? We'll
see what mypy_primer has to say.
To get this to work, I needed to use partial tuple fallbacks in a couple
places. These could cause crashes anyway.
There were some interesting things going on with recursive type aliases
and type state assumptions
This is about a 25% speedup on the pydantic codebase and about a 2%
speedup on self check (measured with uncompiled mypy)
Bug Report
Running mypy on the following program produces a segfault.
To Reproduce
Expected Behavior
Mypy returns successfully.
Actual Behavior
Mypy segfaults:
The problem can be replicated in the mypy playground.
Your Environment
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: