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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy