Skip to content

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

@bzoracler

Description

@bzoracler

The following shows no errors (see mypy Playground):

from typing import TypedDict

@abc
@efg.hij
@klm[nop]
@qrs.tuv[wxy]
class A(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