Files
ruff/crates
Brent Westbrook 6311412373 [syntax-errors] Star annotations before Python 3.11 (#16545)
Summary
--

This is closely related to (and stacked on)
https://github.com/astral-sh/ruff/pull/16544 and detects star
annotations in function definitions.

I initially called the variant `StarExpressionInAnnotation` to mirror
`StarExpressionInIndex`, but I realized it's not really a "star
expression" in this position and renamed it. `StarAnnotation` seems in
line with the PEP.

Test Plan
--

Two new inline tests. It looked like there was pretty good existing
coverage of this syntax, so I just added simple examples to test the
version cutoff.
2025-03-14 15:20:44 +00:00
..
2025-03-14 13:57:56 +01:00
2025-02-26 06:12:43 -08:00
2025-03-14 13:57:56 +01:00
2025-02-07 10:59:40 +01:00
2025-02-26 06:12:43 -08:00
2025-03-14 13:57:56 +01:00