[red-knot] Type narrow in else clause #13918
TomerBin
force pushed
from
4c8cd0e4
to
ec9a7547
325 days ago
TomerBin
force pushed
from
ec9a7547
to
2d156bc1
325 days ago
TomerBin
marked this pull request as ready for review 325 days ago
carljm
commented
on 2024-10-24
Initial negative type narrowing for else and elif
02c1b148
support isinstance negation
ad3aabd6
rename
c979f5e2
support noteq for unions
03e9a061
thanks clippy
0750ce6a
fmt revert
dda35198
comment fixes
4dfa4612
dont use multiple arguments in salsa tracked functions
49b24650
rename constraint to predicate
81ec4450
simplify cmp narrowing by moving negation logic to be CmpOp's method
10690ba6
extend isnot tests with 'else' branch
683932e9
clippy
8cdb70f7
CR notes
a4eb014e
Don't narrow by '=='
d381a90b
stop using undefined flag and declare int_instance body
48933810
TomerBin
force pushed
from
c44ff62e
to
e6f2bd40
323 days ago
Preicate.negative -> Predicate.is_positive
909e9074
TomerBin
force pushed
from
e6f2bd40
to
909e9074
323 days ago
carljm
approved these changes
on 2024-10-26
Apply suggestions from code review
1c21d0c6
revert Predicate name change
981387e5
carljm
enabled auto-merge (squash) 323 days ago
carljm
merged
35f007f1
into main 323 days ago
TomerBin
deleted the tomer/type-narrow-in-else-clause branch 323 days ago
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub