ruff/crates/ruff_python_ast
Brent Westbrook e4f5fe8cf7
[syntax-errors] Duplicate type parameter names (#16858)
Summary
--

Detects duplicate type parameter names in function definitions, class
definitions, and type alias statements.

I also boxed the `type_params` field on `StmtTypeAlias` to make it
easier to
`match` with functions and classes. (That's the reason for the red-knot
code
owner review requests, sorry!)

Test Plan
--

New `ruff_python_syntax_errors` unit tests.

Fixes #11119.
2025-03-21 15:06:22 -04:00
..
src [syntax-errors] Duplicate type parameter names (#16858) 2025-03-21 15:06:22 -04:00
ast.toml [syntax-errors] Duplicate type parameter names (#16858) 2025-03-21 15:06:22 -04:00
Cargo.toml Transition to salsa coarse-grained tracked structs (#15763) 2025-02-11 11:38:50 +01:00
generate.py [red-knot] Auto generate statement nodes (#16645) 2025-03-13 15:43:48 +01:00