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
|
|
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
UnionandOptional.Closes #4819