KEMBAR78
Fix crash on invalid enum in method by ilevkivskyi · Pull Request #16511 · python/mypy · GitHub
Skip to content

Conversation

ilevkivskyi
Copy link
Member

Fixes #16163

Fix is straightforward: I simply copy the logic we have for invalid TypedDicts/NamedTuples.

@github-actions
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

discord.py (https://github.com/Rapptz/discord.py): typechecking got 1.10x faster (196.2s -> 178.3s)
(Performance measurements are based on a single noisy sample)

@ilevkivskyi ilevkivskyi merged commit 5489fd3 into python:master Nov 17, 2023
@ilevkivskyi ilevkivskyi deleted the fix-enum-crash branch November 17, 2023 20:49
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.

Incremental parsing crash with inline dynamic enum.Enum construction

2 participants