https://docs.astral.sh/ty/reference/rules/#super-call-in-named-tuple-method ```py from typing import NamedTuple class F(NamedTuple): x: int def method(self): super() # should report an error here because this crashes at runtime ```
Activity
markselby9 commentedon Jun 17, 2026
I'd like to take this one — opened #3845 with the fix and tests. Happy to iterate on any review feedback.
Report `super()` in a directly-defined NamedTuple method
Report `super()` in a directly-defined `NamedTuple` method (pyrefly-o…
Report `super()` in a directly-defined `NamedTuple` method (pyrefly-o…