-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Enable flake8-pyi's Y037 #9686
Enable flake8-pyi's Y037 #9686
Conversation
This comment has been minimized.
This comment has been minimized.
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
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.
beautiful
I was looking forward to this one. There's still a mention to using Optional and Union as a workaround in CONTRIBUTING.md though: https://github.com/python/typeshed/blob/main/CONTRIBUTING.md?plain=1#L438
|
types-requests version 2.28.11.11 somehow causes issues with lots of djangotestframework-stubs CI tests. (https://github.com/typeddjango/djangorestframework-stubs/actions/runs/4114959794/jobs/7103023727) According to changelog this PR was the only change in that version. Errors like this appear in every tests:
|
@intgr do your tests run with mypy 1.0? If not, you may need to upgrade to mypy 1.0. |
That error message comes from python/mypy#11098, but that bug should have been fixed in mypy 1.0. |
Created issue #9690. Sorry, should have done that in the first place. |
Always use PEP 604 syntax instead of
Union
andOptional
.Closes #4819