Skip to content

Disallow use of ClassVar for TypedDict and NamedTuple attributes #9526

@erictraut

Description

@erictraut

The runtime disallows the use of the ClassVar qualifier when defining a TypedDict and NamedTuple.

This doesn't strike me as a significant source of confusion or bugs, but it has been proposed to amend the typing spec to mandate that type checkers report this condition.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions