-
-
Notifications
You must be signed in to change notification settings - Fork 88
mypy v1.11.0 crashing with --pretty
and shows errors for union syntax
#349
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
Comments
Are you using the pydantic mypy plugin? If not, happy to look into this, but it's probably a bug in mypy. |
I'll note that I can't reproduce this with or without the mypy plugin, at least using the |
Okay, I can reproduce this if using python <=3.9 (presumably because that version of python doesn't support the |
Agreed, it does seem like a If you have any clues on what could be causing this only with |
That's fair. Thanks @dmontagu and @hramezani. |
Cross-post from the issue python/mypy#17535
I'm not sure if this is a
pydantic
/mypy
issue with my (lack of) familiarity for implementation on both of them.Even a simple example like this causes it to be reproduced:
The text was updated successfully, but these errors were encountered: