mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 02:12:22 +00:00
![]() Summary -- Updates the rule docs to explicitly state how cases like `Decimal("0.1")` are handled (not affected) because the discussion of "float casts" referring to values like `nan` and `inf` is otherwise a bit confusing. These changes are based on suggestions from @AlexWaygood on Notion, with a slight adjustment to use 0.1 instead of 0.5 since it causes a more immediate issue in the REPL: ```pycon >>> from decimal import Decimal >>> Decimal(0.5) == Decimal("0.5") True >>> Decimal(0.1) == Decimal("0.1") False ``` Test plan -- N/a Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> |
||
---|---|---|
.. | ||
resources | ||
src | ||
Cargo.toml |