Skip to content
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

Fix types.GenericAlias lookup crash #17543

Merged
merged 2 commits into from
Jul 20, 2024
Merged

Conversation

hauntsaninja
Copy link
Collaborator

Fixes #17542

This comment has been minimized.

@JelleZijlstra
Copy link
Member

Not related to your change but the return of typing._SpecialForm just below should also return types.GenericAlias.

The change itself looks right.

@hauntsaninja
Copy link
Collaborator Author

Yeah, good point. I'll try changing that in a follow-up, since we'll probably want to backport this PR

Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@JelleZijlstra JelleZijlstra merged commit 0a040dd into python:master Jul 20, 2024
19 checks passed
@hauntsaninja hauntsaninja deleted the fix-crash branch July 20, 2024 04:16
hauntsaninja added a commit to hauntsaninja/mypy that referenced this pull request Jul 20, 2024
hauntsaninja added a commit that referenced this pull request Jul 20, 2024
jwodder added a commit to dandi/dandi-cli that referenced this pull request Jul 23, 2024
hauntsaninja added a commit that referenced this pull request Jul 27, 2024
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.

cv2.mat_wrapper INTERNAL ERROR
2 participants