Skip to content

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

Description

@bzoracler

The following shows no errors (see mypy Playground):

fromtypingimportTypedDict@abc@efg.hij@klm[nop]@qrs.tuv[wxy]classA(TypedDict):
pass

This only seems to occur on decorator expressions which also look like annotation expressions.

  • Mypy version used: 1.19.1, master

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions