ruff/crates/ruff_linter
GiGaGon 580577e667
[refurb] Make example error out-of-the-box (FURB157) (#19695)
## Summary

Part of #18972

This PR makes [verbose-decimal-constructor
(FURB157)](https://docs.astral.sh/ruff/rules/verbose-decimal-constructor/#verbose-decimal-constructor-furb157)'s
example error out-of-the-box.

[Old example](https://play.ruff.rs/0930015c-ad45-4490-800e-66ed057bfe34)
```py
Decimal("0")
Decimal(float("Infinity"))
```

[New example](https://play.ruff.rs/516e5992-322f-4203-afe7-46d8cad53368)
```py
from decimal import Decimal

Decimal("0")
Decimal(float("Infinity"))
```

Imports were also added to the "Use Instead" section.
2025-08-01 12:55:48 -05:00
..
resources [flake8-errmsg] Exclude typing.cast from EM101 (#19656) 2025-08-01 13:37:44 -04:00
src [refurb] Make example error out-of-the-box (FURB157) (#19695) 2025-08-01 12:55:48 -05:00
Cargo.toml Bump 0.12.7 (#19627) 2025-07-29 18:18:42 -04:00