ruff
e7beb7e1 - [ty] Forbid use of `super()` in `NamedTuple` subclasses (#21700)

Commit
34 days ago
[ty] Forbid use of `super()` in `NamedTuple` subclasses (#21700) ## Summary The exact behavior around what's allowed vs. disallowed was partly detected through trial and error in the runtime. I was a little confused by [this comment](https://github.com/python/cpython/pull/129352) that says "`NamedTuple` subclasses cannot be inherited from" because in practice that doesn't appear to error at runtime. Closes [#1683](https://github.com/astral-sh/ty/issues/1683).
Author
Parents
Loading