---
source: crates/ruff_linter/src/rules/refurb/mod.rs
---
FURB157 [*] Verbose expression in `Decimal` constructor
 --> FURB157.py:5:9
  |
4 | # Errors
5 | Decimal("0")
  |         ^^^
6 | Decimal("-42")
7 | Decimal(float("Infinity"))
  |
help: Replace with `0`
  |
4 | # Errors
  - Decimal("0")
5 + Decimal(0)
6 | Decimal("-42")
  |

FURB157 [*] Verbose expression in `Decimal` constructor
 --> FURB157.py:6:9
  |
4 | # Errors
5 | Decimal("0")
6 | Decimal("-42")
  |         ^^^^^
7 | Decimal(float("Infinity"))
8 | Decimal(float("-Infinity"))
  |
help: Replace with `-42`
  |
5 | Decimal("0")
  - Decimal("-42")
6 + Decimal(-42)
7 | Decimal(float("Infinity"))
  |

FURB157 [*] Verbose expression in `Decimal` constructor
 --> FURB157.py:7:9
  |
5 | Decimal("0")
6 | Decimal("-42")
7 | Decimal(float("Infinity"))
  |         ^^^^^^^^^^^^^^^^^
8 | Decimal(float("-Infinity"))
9 | Decimal(float("inf"))
  |
help: Replace with `"Infinity"`
  |
6 | Decimal("-42")
  - Decimal(float("Infinity"))
7 + Decimal("Infinity")
8 | Decimal(float("-Infinity"))
  |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:8:9
   |
 6 | Decimal("-42")
 7 | Decimal(float("Infinity"))
 8 | Decimal(float("-Infinity"))
   |         ^^^^^^^^^^^^^^^^^^
 9 | Decimal(float("inf"))
10 | Decimal(float("-inf"))
   |
help: Replace with `"-Infinity"`
  |
7 | Decimal(float("Infinity"))
  - Decimal(float("-Infinity"))
8 + Decimal("-Infinity")
9 | Decimal(float("inf"))
  |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:9:9
   |
 7 | Decimal(float("Infinity"))
 8 | Decimal(float("-Infinity"))
 9 | Decimal(float("inf"))
   |         ^^^^^^^^^^^^
10 | Decimal(float("-inf"))
11 | Decimal(float("nan"))
   |
help: Replace with `"inf"`
   |
8  | Decimal(float("-Infinity"))
   - Decimal(float("inf"))
9  + Decimal("inf")
10 | Decimal(float("-inf"))
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:10:9
   |
 8 | Decimal(float("-Infinity"))
 9 | Decimal(float("inf"))
10 | Decimal(float("-inf"))
   |         ^^^^^^^^^^^^^
11 | Decimal(float("nan"))
12 | decimal.Decimal("0")
   |
help: Replace with `"-inf"`
   |
9  | Decimal(float("inf"))
   - Decimal(float("-inf"))
10 + Decimal("-inf")
11 | Decimal(float("nan"))
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:11:9
   |
 9 | Decimal(float("inf"))
10 | Decimal(float("-inf"))
11 | Decimal(float("nan"))
   |         ^^^^^^^^^^^^
12 | decimal.Decimal("0")
   |
help: Replace with `"nan"`
   |
10 | Decimal(float("-inf"))
   - Decimal(float("nan"))
11 + Decimal("nan")
12 | decimal.Decimal("0")
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:12:17
   |
10 | Decimal(float("-inf"))
11 | Decimal(float("nan"))
12 | decimal.Decimal("0")
   |                 ^^^
13 |
14 | # OK
   |
help: Replace with `0`
   |
11 | Decimal(float("nan"))
   - decimal.Decimal("0")
12 + decimal.Decimal(0)
13 |
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:23:9
   |
22 | # Errors
23 | Decimal("1_000")
   |         ^^^^^^^
24 | Decimal("__1____000") 
   |
help: Replace with `1_000`
   |
22 | # Errors
   - Decimal("1_000")
23 + Decimal(1_000)
24 | Decimal("__1____000") 
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:24:9
   |
22 | # Errors
23 | Decimal("1_000")
24 | Decimal("__1____000") 
   |         ^^^^^^^^^^^^
25 |
26 | # Ok
   |
help: Replace with `1_000`
   |
23 | Decimal("1_000")
   - Decimal("__1____000") 
24 + Decimal(1_000) 
25 |
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:48:9
   |
46 | # Non-finite variants
47 | # https://github.com/astral-sh/ruff/issues/14587
48 | Decimal(float(" nan "))          # Decimal(" nan ") 
   |         ^^^^^^^^^^^^^^
49 | Decimal(float(" +nan "))         # Decimal(" +nan ")
50 | # In this one case, " -nan ", the fix has to be
   |
help: Replace with `" nan "`
   |
47 | # https://github.com/astral-sh/ruff/issues/14587
   - Decimal(float(" nan "))          # Decimal(" nan ") 
48 + Decimal(" nan ")          # Decimal(" nan ") 
49 | Decimal(float(" +nan "))         # Decimal(" +nan ")
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:49:9
   |
47 | # https://github.com/astral-sh/ruff/issues/14587
48 | Decimal(float(" nan "))          # Decimal(" nan ") 
49 | Decimal(float(" +nan "))         # Decimal(" +nan ")
   |         ^^^^^^^^^^^^^^^
50 | # In this one case, " -nan ", the fix has to be
51 | # `Decimal(" nan ")`` because `Decimal("-nan") != Decimal(float("-nan"))`
   |
help: Replace with `" +nan "`
   |
48 | Decimal(float(" nan "))          # Decimal(" nan ") 
   - Decimal(float(" +nan "))         # Decimal(" +nan ")
49 + Decimal(" +nan ")         # Decimal(" +nan ")
50 | # In this one case, " -nan ", the fix has to be
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:52:9
   |
50 | # In this one case, " -nan ", the fix has to be
51 | # `Decimal(" nan ")`` because `Decimal("-nan") != Decimal(float("-nan"))`
52 | Decimal(float(" -nan "))         # Decimal("nan")
   |         ^^^^^^^^^^^^^^^
53 | Decimal(float(" inf "))          # Decimal(" inf ")
54 | Decimal(float(" +inf "))         # Decimal(" +inf ")
   |
help: Replace with `"nan"`
   |
51 | # `Decimal(" nan ")`` because `Decimal("-nan") != Decimal(float("-nan"))`
   - Decimal(float(" -nan "))         # Decimal("nan")
52 + Decimal("nan")         # Decimal("nan")
53 | Decimal(float(" inf "))          # Decimal(" inf ")
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:53:9
   |
51 | # `Decimal(" nan ")`` because `Decimal("-nan") != Decimal(float("-nan"))`
52 | Decimal(float(" -nan "))         # Decimal("nan")
53 | Decimal(float(" inf "))          # Decimal(" inf ")
   |         ^^^^^^^^^^^^^^
54 | Decimal(float(" +inf "))         # Decimal(" +inf ")
55 | Decimal(float(" -inf "))         # Decimal(" -inf ")
   |
help: Replace with `" inf "`
   |
52 | Decimal(float(" -nan "))         # Decimal("nan")
   - Decimal(float(" inf "))          # Decimal(" inf ")
53 + Decimal(" inf ")          # Decimal(" inf ")
54 | Decimal(float(" +inf "))         # Decimal(" +inf ")
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:54:9
   |
52 | Decimal(float(" -nan "))         # Decimal("nan")
53 | Decimal(float(" inf "))          # Decimal(" inf ")
54 | Decimal(float(" +inf "))         # Decimal(" +inf ")
   |         ^^^^^^^^^^^^^^^
55 | Decimal(float(" -inf "))         # Decimal(" -inf ")
56 | Decimal(float(" infinity "))     # Decimal(" infinity ")
   |
help: Replace with `" +inf "`
   |
53 | Decimal(float(" inf "))          # Decimal(" inf ")
   - Decimal(float(" +inf "))         # Decimal(" +inf ")
54 + Decimal(" +inf ")         # Decimal(" +inf ")
55 | Decimal(float(" -inf "))         # Decimal(" -inf ")
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:55:9
   |
53 | Decimal(float(" inf "))          # Decimal(" inf ")
54 | Decimal(float(" +inf "))         # Decimal(" +inf ")
55 | Decimal(float(" -inf "))         # Decimal(" -inf ")
   |         ^^^^^^^^^^^^^^^
56 | Decimal(float(" infinity "))     # Decimal(" infinity ")
57 | Decimal(float(" +infinity "))    # Decimal(" +infinity ")
   |
help: Replace with `" -inf "`
   |
54 | Decimal(float(" +inf "))         # Decimal(" +inf ")
   - Decimal(float(" -inf "))         # Decimal(" -inf ")
55 + Decimal(" -inf ")         # Decimal(" -inf ")
56 | Decimal(float(" infinity "))     # Decimal(" infinity ")
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:56:9
   |
54 | Decimal(float(" +inf "))         # Decimal(" +inf ")
55 | Decimal(float(" -inf "))         # Decimal(" -inf ")
56 | Decimal(float(" infinity "))     # Decimal(" infinity ")
   |         ^^^^^^^^^^^^^^^^^^^
57 | Decimal(float(" +infinity "))    # Decimal(" +infinity ")
58 | Decimal(float(" -infinity "))    # Decimal(" -infinity ")
   |
help: Replace with `" infinity "`
   |
55 | Decimal(float(" -inf "))         # Decimal(" -inf ")
   - Decimal(float(" infinity "))     # Decimal(" infinity ")
56 + Decimal(" infinity ")     # Decimal(" infinity ")
57 | Decimal(float(" +infinity "))    # Decimal(" +infinity ")
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:57:9
   |
55 | Decimal(float(" -inf "))         # Decimal(" -inf ")
56 | Decimal(float(" infinity "))     # Decimal(" infinity ")
57 | Decimal(float(" +infinity "))    # Decimal(" +infinity ")
   |         ^^^^^^^^^^^^^^^^^^^^
58 | Decimal(float(" -infinity "))    # Decimal(" -infinity ")
   |
help: Replace with `" +infinity "`
   |
56 | Decimal(float(" infinity "))     # Decimal(" infinity ")
   - Decimal(float(" +infinity "))    # Decimal(" +infinity ")
57 + Decimal(" +infinity ")    # Decimal(" +infinity ")
58 | Decimal(float(" -infinity "))    # Decimal(" -infinity ")
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:58:9
   |
56 | Decimal(float(" infinity "))     # Decimal(" infinity ")
57 | Decimal(float(" +infinity "))    # Decimal(" +infinity ")
58 | Decimal(float(" -infinity "))    # Decimal(" -infinity ")
   |         ^^^^^^^^^^^^^^^^^^^^
59 |
60 | # Escape sequence handling in "-nan" case
   |
help: Replace with `" -infinity "`
   |
57 | Decimal(float(" +infinity "))    # Decimal(" +infinity ")
   - Decimal(float(" -infinity "))    # Decimal(" -infinity ")
58 + Decimal(" -infinity ")    # Decimal(" -infinity ")
59 |
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:64:9
   |
62 | # and other trivia when offering a fix.
63 | # https://github.com/astral-sh/ruff/issues/16771
64 | Decimal(float("\x2dnan"))
   |         ^^^^^^^^^^^^^^^^
65 | Decimal(float("\x20\x2dnan"))
66 | Decimal(float("\x20\u002dnan"))
   |
help: Replace with `"nan"`
   |
63 | # https://github.com/astral-sh/ruff/issues/16771
   - Decimal(float("\x2dnan"))
64 + Decimal("nan")
65 | Decimal(float("\x20\x2dnan"))
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:65:9
   |
63 | # https://github.com/astral-sh/ruff/issues/16771
64 | Decimal(float("\x2dnan"))
65 | Decimal(float("\x20\x2dnan"))
   |         ^^^^^^^^^^^^^^^^^^^^
66 | Decimal(float("\x20\u002dnan"))
67 | Decimal(float("\x20\U0000002dnan"))
   |
help: Replace with `"nan"`
   |
64 | Decimal(float("\x2dnan"))
   - Decimal(float("\x20\x2dnan"))
65 + Decimal("nan")
66 | Decimal(float("\x20\u002dnan"))
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:66:9
   |
64 | Decimal(float("\x2dnan"))
65 | Decimal(float("\x20\x2dnan"))
66 | Decimal(float("\x20\u002dnan"))
   |         ^^^^^^^^^^^^^^^^^^^^^^
67 | Decimal(float("\x20\U0000002dnan"))
68 | Decimal(float("\N{space}\N{hyPHen-MINus}nan"))
   |
help: Replace with `"nan"`
   |
65 | Decimal(float("\x20\x2dnan"))
   - Decimal(float("\x20\u002dnan"))
66 + Decimal("nan")
67 | Decimal(float("\x20\U0000002dnan"))
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:67:9
   |
65 | Decimal(float("\x20\x2dnan"))
66 | Decimal(float("\x20\u002dnan"))
67 | Decimal(float("\x20\U0000002dnan"))
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^
68 | Decimal(float("\N{space}\N{hyPHen-MINus}nan"))
69 | Decimal(float("\x20\N{character tabulation}\N{hyphen-minus}nan"))
   |
help: Replace with `"nan"`
   |
66 | Decimal(float("\x20\u002dnan"))
   - Decimal(float("\x20\U0000002dnan"))
67 + Decimal("nan")
68 | Decimal(float("\N{space}\N{hyPHen-MINus}nan"))
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:68:9
   |
66 | Decimal(float("\x20\u002dnan"))
67 | Decimal(float("\x20\U0000002dnan"))
68 | Decimal(float("\N{space}\N{hyPHen-MINus}nan"))
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
69 | Decimal(float("\x20\N{character tabulation}\N{hyphen-minus}nan"))
70 | Decimal(float("   -" "nan"))
   |
help: Replace with `"nan"`
   |
67 | Decimal(float("\x20\U0000002dnan"))
   - Decimal(float("\N{space}\N{hyPHen-MINus}nan"))
68 + Decimal("nan")
69 | Decimal(float("\x20\N{character tabulation}\N{hyphen-minus}nan"))
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:69:9
   |
67 | Decimal(float("\x20\U0000002dnan"))
68 | Decimal(float("\N{space}\N{hyPHen-MINus}nan"))
69 | Decimal(float("\x20\N{character tabulation}\N{hyphen-minus}nan"))
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
70 | Decimal(float("   -" "nan"))
71 | Decimal(float("-nAn"))
   |
help: Replace with `"nan"`
   |
68 | Decimal(float("\N{space}\N{hyPHen-MINus}nan"))
   - Decimal(float("\x20\N{character tabulation}\N{hyphen-minus}nan"))
69 + Decimal("nan")
70 | Decimal(float("   -" "nan"))
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:70:9
   |
68 | Decimal(float("\N{space}\N{hyPHen-MINus}nan"))
69 | Decimal(float("\x20\N{character tabulation}\N{hyphen-minus}nan"))
70 | Decimal(float("   -" "nan"))
   |         ^^^^^^^^^^^^^^^^^^^
71 | Decimal(float("-nAn"))
   |
help: Replace with `"nan"`
   |
69 | Decimal(float("\x20\N{character tabulation}\N{hyphen-minus}nan"))
   - Decimal(float("   -" "nan"))
70 + Decimal("nan")
71 | Decimal(float("-nAn"))
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:71:9
   |
69 | Decimal(float("\x20\N{character tabulation}\N{hyphen-minus}nan"))
70 | Decimal(float("   -" "nan"))
71 | Decimal(float("-nAn"))
   |         ^^^^^^^^^^^^^
72 |
73 | # Test cases for digit separators (safe fixes)
   |
help: Replace with `"nan"`
   |
70 | Decimal(float("   -" "nan"))
   - Decimal(float("-nAn"))
71 + Decimal("nan")
72 |
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:75:9
   |
73 | # Test cases for digit separators (safe fixes)
74 | # https://github.com/astral-sh/ruff/issues/20572
75 | Decimal("15_000_000")  # Safe fix: normalizes separators, becomes Decimal(15_000_000)
   |         ^^^^^^^^^^^^
76 | Decimal("1_234_567")   # Safe fix: normalizes separators, becomes Decimal(1_234_567)
77 | Decimal("-5_000")      # Safe fix: normalizes separators, becomes Decimal(-5_000)
   |
help: Replace with `15_000_000`
   |
74 | # https://github.com/astral-sh/ruff/issues/20572
   - Decimal("15_000_000")  # Safe fix: normalizes separators, becomes Decimal(15_000_000)
75 + Decimal(15_000_000)  # Safe fix: normalizes separators, becomes Decimal(15_000_000)
76 | Decimal("1_234_567")   # Safe fix: normalizes separators, becomes Decimal(1_234_567)
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:76:9
   |
74 | # https://github.com/astral-sh/ruff/issues/20572
75 | Decimal("15_000_000")  # Safe fix: normalizes separators, becomes Decimal(15_000_000)
76 | Decimal("1_234_567")   # Safe fix: normalizes separators, becomes Decimal(1_234_567)
   |         ^^^^^^^^^^^
77 | Decimal("-5_000")      # Safe fix: normalizes separators, becomes Decimal(-5_000)
78 | Decimal("+9_999")      # Safe fix: normalizes separators, becomes Decimal(+9_999)
   |
help: Replace with `1_234_567`
   |
75 | Decimal("15_000_000")  # Safe fix: normalizes separators, becomes Decimal(15_000_000)
   - Decimal("1_234_567")   # Safe fix: normalizes separators, becomes Decimal(1_234_567)
76 + Decimal(1_234_567)   # Safe fix: normalizes separators, becomes Decimal(1_234_567)
77 | Decimal("-5_000")      # Safe fix: normalizes separators, becomes Decimal(-5_000)
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:77:9
   |
75 | Decimal("15_000_000")  # Safe fix: normalizes separators, becomes Decimal(15_000_000)
76 | Decimal("1_234_567")   # Safe fix: normalizes separators, becomes Decimal(1_234_567)
77 | Decimal("-5_000")      # Safe fix: normalizes separators, becomes Decimal(-5_000)
   |         ^^^^^^^^
78 | Decimal("+9_999")      # Safe fix: normalizes separators, becomes Decimal(+9_999)
   |
help: Replace with `-5_000`
   |
76 | Decimal("1_234_567")   # Safe fix: normalizes separators, becomes Decimal(1_234_567)
   - Decimal("-5_000")      # Safe fix: normalizes separators, becomes Decimal(-5_000)
77 + Decimal(-5_000)      # Safe fix: normalizes separators, becomes Decimal(-5_000)
78 | Decimal("+9_999")      # Safe fix: normalizes separators, becomes Decimal(+9_999)
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:78:9
   |
76 | Decimal("1_234_567")   # Safe fix: normalizes separators, becomes Decimal(1_234_567)
77 | Decimal("-5_000")      # Safe fix: normalizes separators, becomes Decimal(-5_000)
78 | Decimal("+9_999")      # Safe fix: normalizes separators, becomes Decimal(+9_999)
   |         ^^^^^^^^
79 |
80 | # Test cases for non-thousands separators
   |
help: Replace with `+9_999`
   |
77 | Decimal("-5_000")      # Safe fix: normalizes separators, becomes Decimal(-5_000)
   - Decimal("+9_999")      # Safe fix: normalizes separators, becomes Decimal(+9_999)
78 + Decimal(+9_999)      # Safe fix: normalizes separators, becomes Decimal(+9_999)
79 |
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:81:9
   |
80 | # Test cases for non-thousands separators
81 | Decimal("12_34_56_78")  # Safe fix: preserves non-thousands separators
   |         ^^^^^^^^^^^^^
82 | Decimal("1234_5678")    # Safe fix: preserves non-thousands separators
   |
help: Replace with `12_34_56_78`
   |
80 | # Test cases for non-thousands separators
   - Decimal("12_34_56_78")  # Safe fix: preserves non-thousands separators
81 + Decimal(12_34_56_78)  # Safe fix: preserves non-thousands separators
82 | Decimal("1234_5678")    # Safe fix: preserves non-thousands separators
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:82:9
   |
80 | # Test cases for non-thousands separators
81 | Decimal("12_34_56_78")  # Safe fix: preserves non-thousands separators
82 | Decimal("1234_5678")    # Safe fix: preserves non-thousands separators
   |         ^^^^^^^^^^^
83 |
84 | # Separators _and_ leading zeros
   |
help: Replace with `1234_5678`
   |
81 | Decimal("12_34_56_78")  # Safe fix: preserves non-thousands separators
   - Decimal("1234_5678")    # Safe fix: preserves non-thousands separators
82 + Decimal(1234_5678)    # Safe fix: preserves non-thousands separators
83 |
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:85:9
   |
84 | # Separators _and_ leading zeros
85 | Decimal("0001_2345")
   |         ^^^^^^^^^^^
86 | Decimal("000_1_2345")
87 | Decimal("000_000")
   |
help: Replace with `1_2345`
   |
84 | # Separators _and_ leading zeros
   - Decimal("0001_2345")
85 + Decimal(1_2345)
86 | Decimal("000_1_2345")
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:86:9
   |
84 | # Separators _and_ leading zeros
85 | Decimal("0001_2345")
86 | Decimal("000_1_2345")
   |         ^^^^^^^^^^^^
87 | Decimal("000_000")
   |
help: Replace with `1_2345`
   |
85 | Decimal("0001_2345")
   - Decimal("000_1_2345")
86 + Decimal(1_2345)
87 | Decimal("000_000")
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:87:9
   |
85 | Decimal("0001_2345")
86 | Decimal("000_1_2345")
87 | Decimal("000_000")
   |         ^^^^^^^^^
88 |
89 | # Test cases for underscores before sign
   |
help: Replace with `0`
   |
86 | Decimal("000_1_2345")
   - Decimal("000_000")
87 + Decimal(0)
88 |
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:91:9
   |
89 | # Test cases for underscores before sign
90 | # https://github.com/astral-sh/ruff/issues/21186
91 | Decimal("_-1")      # Should flag as verbose
   |         ^^^^^
92 | Decimal("_+1")      # Should flag as verbose
93 | Decimal("_-1_000")  # Should flag as verbose
   |
help: Replace with `-1`
   |
90 | # https://github.com/astral-sh/ruff/issues/21186
   - Decimal("_-1")      # Should flag as verbose
91 + Decimal(-1)      # Should flag as verbose
92 | Decimal("_+1")      # Should flag as verbose
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:92:9
   |
90 | # https://github.com/astral-sh/ruff/issues/21186
91 | Decimal("_-1")      # Should flag as verbose
92 | Decimal("_+1")      # Should flag as verbose
   |         ^^^^^
93 | Decimal("_-1_000")  # Should flag as verbose
   |
help: Replace with `+1`
   |
91 | Decimal("_-1")      # Should flag as verbose
   - Decimal("_+1")      # Should flag as verbose
92 + Decimal(+1)      # Should flag as verbose
93 | Decimal("_-1_000")  # Should flag as verbose
   |

FURB157 [*] Verbose expression in `Decimal` constructor
  --> FURB157.py:93:9
   |
91 | Decimal("_-1")      # Should flag as verbose
92 | Decimal("_+1")      # Should flag as verbose
93 | Decimal("_-1_000")  # Should flag as verbose
   |         ^^^^^^^^^
   |
help: Replace with `-1_000`
   |
92 | Decimal("_+1")      # Should flag as verbose
   - Decimal("_-1_000")  # Should flag as verbose
93 + Decimal(-1_000)  # Should flag as verbose
94 |
   |

FURB157 [*] Verbose expression in `Decimal` constructor
   --> FURB157.py:97:5
    |
 96 |   Decimal(
 97 | /     float(
 98 | |         # text
 99 | |         "Infinity"
100 | |     )
    | |_____^
101 |   )
    |
help: Replace with `"Infinity"`
   |
96 | Decimal(
   -     float(
   -         # text
   -         "Infinity"
   -     )
97 +     "Infinity"
98 | )
   |
note: This is an unsafe fix and may change runtime behavior
