Skip to content

new rule - ban super() call in NamedTuples #3763

Closed

Description

@DetachHead

https://docs.astral.sh/ty/reference/rules/#super-call-in-named-tuple-method

from typing import NamedTuple

class F(NamedTuple):
    x: int

    def method(self):
        super()  # should report an error here because this crashes at runtime

Activity

  1. added
    help wantedLarger than "good first issue", but still well-defined and ready for someone to pick up
    on Jun 11, 2026
  2. markselby9 commented on Jun 17, 2026

    @markselby9
    Contributor

    I'd like to take this one — opened #3845 with the fix and tests. Happy to iterate on any review feedback.

  3. added a commit that references this issue on Jun 18, 2026
    7909f37
  4. added this to the v1.2 milestone on Jun 25, 2026
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

    help wantedLarger than "good first issue", but still well-defined and ready for someone to pick uptypechecking

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions