mirror of
https://github.com/astral-sh/ruff
synced 2026-01-21 13:30:49 -05:00
If the LHS is just `int` or `float` type, that type includes custom subclasses which can arbitrarily override division behavior, so we shouldn't emit a divide-by-zero error in those cases. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>