[red-knot] Implement more types in binary and unary expressions #13803
Glyphack
force pushed
from
c1131f04
to
7044ed6e
1 year ago
carljm
requested changes
on 2024-10-18
Implement unary op for any and unknown
cd88837d
Handle division by zero for boolean rhs
c6120898
Handle booleans in binary expression
0fcf2865
Handle instances in unary operation
b0567307
Remove unknown test case
00df2f91
Glyphack
force pushed
from
6f025ba5
to
55dc7a63
1 year ago
Add more tests without unnecessary variables
cad456f4
Glyphack
force pushed
from
55dc7a63
to
cad456f4
1 year ago
Check for Bool class in division by zero
3aa7b6c9
Convert booleans to integer literal in binary operations
de190b82
Separate handling unary not for instance types
729ddb7c
Merge branch 'main' into unary-op
097678b5
carljm
requested changes
on 2024-10-19
Update crates/red_knot_python_semantic/src/types/infer.rs
ce45e6ba
Update crates/red_knot_python_semantic/src/types/infer.rs
f4f425f0
Update crates/red_knot_python_semantic/src/types/infer.rs
21e249e0
Apply suggestions
05df52f4
Add tests for integer power op
24b8a430
Merge branch 'main' into unary-op
aca5e418
Correct return type
d962bce6
Update integers.md
f0b4eef5
Reformat markdown tests
d1b3abf9
Add debug assert for instance not op
35555c39
Use unreachable
f99644e4
Update crates/red_knot_python_semantic/src/types/infer.rs
6f8f74b1
carljm
approved these changes
on 2024-10-20
Apply suggestions from code review
8292567c
carljm
enabled auto-merge (squash) 1 year ago
carljm
merged
0f0fff4d
into main 1 year ago
Glyphack
deleted the unary-op branch 1 year ago
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub