ruff/crates/ty_python_semantic/resources/mdtest/binary
Brandt Bucher 91b7a570c2
[ty] Implement Python's floor division semantics for Literal ints (#18249)
Division works differently in Python than in Rust. If the result is
negative and there is a remainder, the division rounds down (instead of
towards zero). The remainder needs to be adjusted to compensate so that
`(lhs // rhs) * rhs + (lhs % rhs) == lhs`.

Fixes astral-sh/ty#481.
2025-05-22 10:42:29 -04:00
..
booleans.md [ty] Add missing bitwise-operator branches for boolean and integer arithmetic (#17949) 2025-05-08 14:10:35 +01:00
classes.md
custom.md
instances.md [ty] Understand homogeneous tuple annotations (#17998) 2025-05-12 22:02:25 -04:00
integers.md [ty] Implement Python's floor division semantics for Literal ints (#18249) 2025-05-22 10:42:29 -04:00
tuples.md [ty] Infer parameter specializations of generic aliases (#18021) 2025-05-12 22:12:44 -04:00
unions.md