Skip to content

Fix #21030#21267

Open
pranavmanglik wants to merge 1 commit intopython:masterfrom
pranavmanglik:fix-21030
Open

Fix #21030#21267
pranavmanglik wants to merge 1 commit intopython:masterfrom
pranavmanglik:fix-21030

Conversation

@pranavmanglik
Copy link
Copy Markdown
Contributor

Previously, the semantic analyzer's special-case handling for TypedDict (analyze_typeddict_classdef) was returning early without visiting the decorators list in the ClassDef. This caused mypy to silently ignore invalid names, attributes, or subscripted expressions used as decorators on these classes.

Fixes #21030

@github-actions
Copy link
Copy Markdown
Contributor

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

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.

Undefined names used as decorators on top of TypedDict are not reported

1 participant