ruff
[ty] Don't add a subdiagnostic pointing to the TypeVar definition if the TypeVar is `Self`
#22646
Merged

[ty] Don't add a subdiagnostic pointing to the TypeVar definition if the TypeVar is `Self` #22646

MatthewMckee4
MatthewMckee4 Use class header instead of range in union bound diagnostics
e69bb3ae
MatthewMckee4 MatthewMckee4 requested a review from carljm carljm 5 days ago
MatthewMckee4 MatthewMckee4 requested a review from AlexWaygood AlexWaygood 5 days ago
MatthewMckee4 MatthewMckee4 requested a review from sharkdp sharkdp 5 days ago
MatthewMckee4 MatthewMckee4 requested a review from dcreager dcreager 5 days ago
MatthewMckee4 MatthewMckee4 changed the title Use class header instead of range in union bound diagnostics [ty] Use class header instead of full range in certain diagnostics 5 days ago
astral-sh-bot
astral-sh-bot
AlexWaygood AlexWaygood added ty
AlexWaygood AlexWaygood added diagnostics
AlexWaygood
AlexWaygood commented on 2026-01-17
MatthewMckee4 Fix tests
67f81aef
MatthewMckee4 Dont add diagnostic if typevar is self
360d1772
MatthewMckee4 MatthewMckee4 requested a review from AlexWaygood AlexWaygood 5 days ago
AlexWaygood
AlexWaygood commented on 2026-01-17
AlexWaygood use newer snapshot format
d6c2e3a0
AlexWaygood AlexWaygood changed the title [ty] Use class header instead of full range in certain diagnostics [ty] Don't add a subdiagnostic pointing to the TypeVar definition if the TypeVar is `Self` 5 days ago
AlexWaygood
AlexWaygood approved these changes on 2026-01-17
AlexWaygood AlexWaygood enabled auto-merge (squash) 5 days ago
AlexWaygood AlexWaygood merged ebf7d0cd into main 5 days ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone