ruff
[red knot] Fix narrowing for '… is not …' type guards, add '… is …' type guards
#13758
Merged

[red knot] Fix narrowing for '… is not …' type guards, add '… is …' type guards #13758

sharkdp merged 11 commits into main from david/type-narrowing-updates
sharkdp
sharkdp [red knot] Fix narrowing for 'is not' conditionals
09eeee99
sharkdp sharkdp requested a review from carljm carljm 1 year ago
sharkdp sharkdp requested a review from MichaReiser MichaReiser 1 year ago
sharkdp sharkdp requested a review from AlexWaygood AlexWaygood 1 year ago
sharkdp sharkdp added ty
sharkdp
sharkdp commented on 2024-10-15
sharkdp
sharkdp commented on 2024-10-15
sharkdp
sharkdp commented on 2024-10-15
sharkdp
sharkdp commented on 2024-10-15
sharkdp
sharkdp commented on 2024-10-15
github-actions
sharkdp Move Type::Todo to the false-branch
e241c422
MichaReiser
MichaReiser approved these changes on 2024-10-15
sharkdp The empty tuple type is a singleton type
749f176a
AlexWaygood
AlexWaygood requested changes on 2024-10-15
sharkdp Fix behavior for tuple types
e069381a
sharkdp Use custom type instead of LiteralInt
a95b4d57
sharkdp Add explanation to 'is not' test
b425e6a3
sharkdp Add TODO comment
da842bbc
AlexWaygood
AlexWaygood approved these changes on 2024-10-15
sharkdp Shorten comment regarding union types
edfaf896
sharkdp Add TODO comment
b219c6fc
sharkdp Handle non-singleton 'is not' case
79f809cd
AlexWaygood
AlexWaygood commented on 2024-10-15
sharkdp Modules are singleton types as well
9169e351
AlexWaygood
AlexWaygood approved these changes on 2024-10-15
sharkdp sharkdp merged 74bf4b06 into main 1 year ago
sharkdp sharkdp deleted the david/type-narrowing-updates branch 1 year ago
carljm
carljm commented on 2024-10-15
carljm
carljm commented on 2024-10-15
carljm
carljm commented on 2024-10-15
carljm
carljm commented on 2024-10-15

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone