FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix crash on unimported Any in TypedDict by ilevkivskyi · Pull Request #16510 · python/mypy · GitHub

Repository navigation

Fix crash on unimported Any in TypedDict - #16510

Merged
ilevkivskyi merged 3 commits into
python:masterfrom
ilevkivskyi:fix-any-crash
Nov 17, 2023
Merged

ilevkivskyi merged 3 commits into
python:masterfrom
ilevkivskyi:fix-any-crash

Conversation

Copy link
Copy Markdown
Member

Fixes #16498

Fix is trivial: no operations can be done with Required types before unwrapping (because they are not real types).

This comment has been minimized.

JelleZijlstra left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks, I figured this would probably be a simple fix

Comment thread test-data/unit/check-typeddict.test Outdated
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>

This comment has been minimized.

Copy link
Copy Markdown
Contributor

According 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 Nov 17, 2023
ilevkivskyi deleted the fix-any-crash branch November 17, 2023 00:48
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mypy crashes when importing types_aiobotocore_s3

2 participants


Back | FazBrowse Home | New Git URL