Uh oh!
There was an error while loading. Please reload this page.
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. 🤖🎉 |
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
|
intgr
commented
Feb 7, 2023
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:
|
AlexWaygood
commented
Feb 7, 2023
@intgr do your tests run with mypy 1.0? If not, you may need to upgrade to mypy 1.0. |
AlexWaygood
commented
Feb 7, 2023
That error message comes from python/mypy#11098, but that bug should have been fixed in mypy 1.0. |
intgr
commented
Feb 7, 2023
Created issue #9690. Sorry, should have done that in the first place. |
Always use PEP 604 syntax instead of
UnionandOptional.Closes#4819