Fix crash on unimported Any in TypedDict by ilevkivskyi · Pull Request #16510 · python/mypy
Navigation Menu
{{ message }}
- Notifications You must be signed in to change notification settings
- Fork 3.2k
Merged
ilevkivskyi merged 3 commits intopython:masterfrom
Nov 17, 2023Merged
Fix crash on unimported Any in TypedDict#16510
ilevkivskyi merged 3 commits intopython:masterfrom
Fix crash on unimported Any in TypedDict#16510
ilevkivskyi merged 3 commits intopython:masterfrom
Conversation
Copy link Copy Markdown
Member
ilevkivskyi
commented
Nov 16, 2023
ilevkivskyi
commented
Fixes #16498
Fix is trivial: no operations can be done with Required types before unwrapping (because they are not real types).
ilevkivskyi
requested review from
JukkaL and
hauntsaninja
This comment has been minimized.
This comment has been minimized.
JelleZijlstra approved these changes Nov 16, 2023
Copy link Copy Markdown
Member
JelleZijlstra
left a comment
JelleZijlstra
left a comment
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I figured this would probably be a simple fix
test-data/unit/check-typeddict.test
Outdated
Show resolved
Hide resolved
test-data/unit/check-typeddict.test Outdated Show resolved Hide resolved
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This comment has been minimized.
This comment has been minimized.
Copy link Copy Markdown
Contributor
github-actions
bot
commented
Nov 17, 2023
github-actions bot commented
Nov 17, 2023According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅
ilevkivskyi
merged commit
8c8aa10
into
python:master
ilevkivskyi
deleted the
fix-any-crash
branch
QuLogic
mentioned this pull request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment