-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hangs on imports from pydantic v2 #14627
Comments
Could this be a super massive black hole union: https://github.com/pydantic/pydantic-core/blob/bfb373c269ae2bfcc32c15e4f1e59f2cee30b2ac/pydantic_core/core_schema.py#L2547? |
Using the poor man's debugger of running
It's indeed plausible this has something to do with the huge Union. |
Probably. It's also used recursively in some places which doesn't help either. As for mypy, it seems there is a performance issue with large unions in particular. That might be something to look into. |
I had a similar issues here KotlinIsland#399 |
Maybe a first step could be to add a section to the Common issues page. That way users could at least find and know about it. |
This is a duplicate of #14034 I think. |
mypy version: 1.0.0
pydantic version: 2.0.0.dev.0 (installed from github pydantic/pydantic@ef3cc49)
when running mypy with
-vvv
it gets stuck on:The text was updated successfully, but these errors were encountered: