ruff
[ty] narrow the right-hand side of `==`, `!=`, `is` and `is not` conditions when the left-hand side is not narrowable
#22511
Merged

[ty] narrow the right-hand side of `==`, `!=`, `is` and `is not` conditions when the left-hand side is not narrowable #22511

drbh
drbh feat: narrow right comparison op
448a317e
drbh feat: update eq doc tests
8ef0abb7
drbh drbh requested a review from carljm carljm 276 days ago
drbh drbh requested a review from AlexWaygood AlexWaygood 276 days ago
drbh drbh requested a review from sharkdp sharkdp 276 days ago
drbh drbh requested a review from dcreager dcreager 276 days ago
AlexWaygood AlexWaygood added ty
drbh fix: update conditional docs too
4a6a48b6
astral-sh-bot
astral-sh-bot
MichaReiser MichaReiser added ecosystem-analyzer
astral-sh-bot
AlexWaygood
AlexWaygood commented on 2026-01-12
drbh fix: move logic after call expr to avoid the extra check. patch from …
8b7b0a7e
drbh fix: cleanup comment and add tests
0c42a5ce
AlexWaygood make test an mdtest
d63ae161
AlexWaygood
AlexWaygood approved these changes on 2026-01-13
AlexWaygood AlexWaygood changed the title [ty] narrow right comparison op [ty] narrow the right-hand side of `==`, `!=`, `is` and `is not` conditions when the left-hand side is not narrowable 274 days ago
AlexWaygood AlexWaygood enabled auto-merge (squash) 274 days ago
AlexWaygood AlexWaygood merged d13b5db0 into main 274 days ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone