ruff
[ty] Validate type variable defaults don't reference later type parameters or type parameters out of scope
#23623
Merged

[ty] Validate type variable defaults don't reference later type parameters or type parameters out of scope #23623

AlexWaygood
claude [ty] Reject PEP 695 type variable defaults that reference later type …
c39b1cd9
claude Make diagnostic messages more concise
756cc902
claude Shorten diagnostic message further
e22c402f
claude Avoid unnecessary collect() by cloning the iterator
53d1f86d
claude Check type variable default forward-references for legacy generics too
52e86f79
AlexWaygood add snapshots
234f8f65
AlexWaygood AlexWaygood added ty
AlexWaygood AlexWaygood added ecosystem-analyzer
astral-sh-bot
astral-sh-bot
astral-sh-bot
astral-sh-bot
claude [ty] Detect typevar defaults referencing typevars not in the class's …
a3ec7985
claude [ty] Shorten diagnostic for typevar default referencing non-parameter…
c3cf4d3c
claude [ty] Use "out-of-scope" wording in typevar default diagnostic
2fff7fcb
claude [ty] Only annotate the bad-default typevar when referenced typevar is…
515c2d55
AlexWaygood AlexWaygood changed the title [ty] Validate type variable defaults don't reference later type parameters [ty] Validate type variable defaults don't reference later type parameters or type parameters out of scope 37 days ago
AlexWaygood AlexWaygood marked this pull request as ready for review 37 days ago
AlexWaygood AlexWaygood requested a review from carljm carljm 37 days ago
AlexWaygood AlexWaygood requested a review from sharkdp sharkdp 37 days ago
AlexWaygood AlexWaygood requested a review from dcreager dcreager 37 days ago
AlexWaygood AlexWaygood requested a review from ibraheemdev ibraheemdev 37 days ago
astral-sh-bot astral-sh-bot assigned ibraheemdev ibraheemdev 37 days ago
carljm carljm removed review request from carljm carljm 37 days ago
charliermarsh
charliermarsh approved these changes on 2026-02-28
AlexWaygood generalize
17528d36
AlexWaygood Claude just really wants to `.collect()`, huh
3c0a8104
AlexWaygood .
2e3852da
AlexWaygood AlexWaygood merged 7015ea74 into main 36 days ago
AlexWaygood AlexWaygood deleted the claude/fix-type-variable-ordering-LHT8Z branch 36 days ago

Login to write a write a comment.

Login via GitHub

Assignees
Labels
Milestone