-
Notifications
You must be signed in to change notification settings - Fork 265
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
Make mypy ignore CoreSchema's typing #528
Conversation
MYPY: Literal[False] = False | ||
|
||
|
||
if not MYPY: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MyPy looks for the name MYPY
and ignores elif False
. Pyright needs the elif False
to not complain about CoreSchema
getting re-defined.
But now we can't use mypy properly on pydantic. I'm afk, but I might have another solution. |
Correct but we really should use pyright anyway since mypy can't type check fully (because we have to run it with |
CodSpeed Performance ReportMerging #528 Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.