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
This is a performance optimisation for subtyping between two unions that
are largely the same.
Fixes#14034
This makes @adriangb's example in
#14034 (comment)
finish basically instantly. I could add it as a unit test?
Type checking pydantic core is still not fast — takes like four or five
minutes with uncompiled mypy — but at least it's now feasible. I think
there's room for doing some optimisation in make_simplified_union that
would improve this.
0 commit comments