@@ -9,7 +9,7 @@ UP018.py:37:1: UP018 [*] Unnecessary `str` call (rewrite as a literal)
9938 | str (" foo" )
101039 | str (" " "
1111 |
12- = help : Replace with empty string
12+ = help : Replace with string literal
1313
1414ℹ Fix
151534 34 | int ().denominator
@@ -30,7 +30,7 @@ UP018.py:38:1: UP018 [*] Unnecessary `str` call (rewrite as a literal)
303039 | str (" " "
313140 | foo" " " )
3232 |
33- = help : Replace with empty string
33+ = help : Replace with string literal
3434
3535ℹ Fix
363635 35 |
@@ -52,7 +52,7 @@ UP018.py:39:1: UP018 [*] Unnecessary `str` call (rewrite as a literal)
525241 | bytes ()
535342 | bytes (b " foo" )
5454 |
55- = help : Replace with empty string
55+ = help : Replace with string literal
5656
5757ℹ Fix
585836 36 | # These become string or byte literals
@@ -75,7 +75,7 @@ UP018.py:41:1: UP018 [*] Unnecessary `bytes` call (rewrite as a literal)
757542 | bytes (b " foo" )
767643 | bytes (b " " "
7777 |
78- = help : Replace with empty bytes
78+ = help : Replace with bytes literal
7979
8080ℹ Fix
818138 38 | str (" foo" )
@@ -96,7 +96,7 @@ UP018.py:42:1: UP018 [*] Unnecessary `bytes` call (rewrite as a literal)
969643 | bytes (b " " "
979744 | foo" " " )
9898 |
99- = help : Replace with empty bytes
99+ = help : Replace with bytes literal
100100
101101ℹ Fix
10210239 39 | str (" " "
@@ -118,7 +118,7 @@ UP018.py:43:1: UP018 [*] Unnecessary `bytes` call (rewrite as a literal)
11811845 | f " {str()}"
11911946 | int ()
120120 |
121- = help : Replace with empty bytes
121+ = help : Replace with bytes literal
122122
123123ℹ Fix
12412440 40 | foo " " " )
@@ -141,7 +141,7 @@ UP018.py:45:4: UP018 [*] Unnecessary `str` call (rewrite as a literal)
14114146 | int ()
14214247 | int (1 )
143143 |
144- = help : Replace with empty string
144+ = help : Replace with string literal
145145
146146ℹ Fix
14714742 42 | bytes (b " foo" )
@@ -162,7 +162,7 @@ UP018.py:46:1: UP018 [*] Unnecessary `int` call (rewrite as a literal)
16216247 | int (1 )
16316348 | float ()
164164 |
165- = help : Replace with 0
165+ = help : Replace with integer literal
166166
167167ℹ Fix
16816843 43 | bytes (b " " "
@@ -183,7 +183,7 @@ UP018.py:47:1: UP018 [*] Unnecessary `int` call (rewrite as a literal)
18318348 | float ()
18418449 | float (1.0 )
185185 |
186- = help : Replace with 0
186+ = help : Replace with integer literal
187187
188188ℹ Fix
18918944 44 | foo " " " )
@@ -204,7 +204,7 @@ UP018.py:48:1: UP018 [*] Unnecessary `float` call (rewrite as a literal)
20420449 | float (1.0 )
20520550 | bool ()
206206 |
207- = help : Replace with 0.0
207+ = help : Replace with float literal
208208
209209ℹ Fix
21021045 45 | f " {str()}"
@@ -225,7 +225,7 @@ UP018.py:49:1: UP018 [*] Unnecessary `float` call (rewrite as a literal)
22522550 | bool ()
22622651 | bool (True )
227227 |
228- = help : Replace with 0.0
228+ = help : Replace with float literal
229229
230230ℹ Fix
23123146 46 | int ()
@@ -246,7 +246,7 @@ UP018.py:50:1: UP018 [*] Unnecessary `bool` call (rewrite as a literal)
24624651 | bool (True )
24724752 | bool (False )
248248 |
249- = help : Replace with ` False `
249+ = help : Replace with boolean literal
250250
251251ℹ Fix
25225247 47 | int (1 )
@@ -266,7 +266,7 @@ UP018.py:51:1: UP018 [*] Unnecessary `bool` call (rewrite as a literal)
266266 | ^^^^^^^^^^ UP018
26726752 | bool (False )
268268 |
269- = help : Replace with ` False `
269+ = help : Replace with boolean literal
270270
271271ℹ Fix
27227248 48 | float ()
@@ -287,7 +287,7 @@ UP018.py:52:1: UP018 [*] Unnecessary `bool` call (rewrite as a literal)
28728753 |
28828854 | # These become a literal but retain parentheses
289289 |
290- = help : Replace with ` False `
290+ = help : Replace with boolean literal
291291
292292ℹ Fix
29329349 49 | float (1.0 )
@@ -305,7 +305,7 @@ UP018.py:55:1: UP018 [*] Unnecessary `int` call (rewrite as a literal)
30530555 | int (1 ).denominator
306306 | ^^^^^^ UP018
307307 |
308- = help : Replace with 0
308+ = help : Replace with integer literal
309309
310310ℹ Fix
31131152 52 | bool (False )
0 commit comments