Skip to content

Implement additional checks for namedtuple #10351

@erictraut

Description

@erictraut

This PR proposes to amend the typing spec and clarify that type checkers should disallow named tuple field names that begin with an underscore. I wasn't previously aware of this limitation, so pyright doesn't enforce this. Since this will likely become mandated by the typing spec, it should be added.

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