Skip to content

Field name with underscore is reported as error with namedtuple functional form #11033

Closed

Description

@erictraut

The typing spec and conformance tests were recently updated to cover the case where a namedtuple defined using the functional form and a rename=True parameter should allow field names starting with an underscore. These would normally be illegal (and rejected at runtime), but they are allowed when rename=True.

Activity

  1. added
    addressed in next version
    on Oct 15, 2025
  2. erictraut commented on Oct 22, 2025

    @erictraut
    CollaboratorAuthor

    This is addressed in pyright 1.1.407

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    addressed in next versionbugspec compliance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions