Skip to content

Commit e596c10

Browse files
committed
fix(pylint): remove space from example
1 parent faaf682 commit e596c10

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

crates/ruff_linter/resources/test/fixtures/pylint/boolean_chained_comparison.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
c = int(input())
7171
d = int(input())
7272
e = int(input())
73-
if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
73+
if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
7474
pass
7575

7676
# ------------

crates/ruff_linter/src/rules/pylint/snapshots/ruff_linter__rules__pylint__tests__PLR1716_boolean_chained_comparison.py.snap

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ boolean_chained_comparison.py:73:4: PLR1716 [*] Contains chained boolean compari
205205
|
206206
71 | d = int(input())
207207
72 | e = int(input())
208-
73 | if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
208+
73 | if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
209209
| ^^^^^^^^^^^^^^^ PLR1716
210210
74 | pass
211211
|
@@ -215,8 +215,8 @@ boolean_chained_comparison.py:73:4: PLR1716 [*] Contains chained boolean compari
215215
70 70 | c = int(input())
216216
71 71 | d = int(input())
217217
72 72 | e = int(input())
218-
73 |-if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
219-
73 |+if a < b < c and c < d and d < e: # [boolean-chained-comparison]
218+
73 |-if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
219+
73 |+if a < b < c and c < d and d < e: # [boolean-chained-comparison]
220220
74 74 | pass
221221
75 75 |
222222
76 76 | # ------------
@@ -225,7 +225,7 @@ boolean_chained_comparison.py:73:14: PLR1716 [*] Contains chained boolean compar
225225
|
226226
71 | d = int(input())
227227
72 | e = int(input())
228-
73 | if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
228+
73 | if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
229229
| ^^^^^^^^^^^^^^^ PLR1716
230230
74 | pass
231231
|
@@ -235,8 +235,8 @@ boolean_chained_comparison.py:73:14: PLR1716 [*] Contains chained boolean compar
235235
70 70 | c = int(input())
236236
71 71 | d = int(input())
237237
72 72 | e = int(input())
238-
73 |-if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
239-
73 |+if a < b and b < c < d and d < e: # [boolean-chained-comparison]
238+
73 |-if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
239+
73 |+if a < b and b < c < d and d < e: # [boolean-chained-comparison]
240240
74 74 | pass
241241
75 75 |
242242
76 76 | # ------------
@@ -245,8 +245,8 @@ boolean_chained_comparison.py:73:24: PLR1716 [*] Contains chained boolean compar
245245
|
246246
71 | d = int(input())
247247
72 | e = int(input())
248-
73 | if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
249-
| ^^^^^^^^^^^^^^^^ PLR1716
248+
73 | if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
249+
| ^^^^^^^^^^^^^^^ PLR1716
250250
74 | pass
251251
|
252252
= help: Simplify chained boolean comparisons
@@ -255,7 +255,7 @@ boolean_chained_comparison.py:73:24: PLR1716 [*] Contains chained boolean compar
255255
70 70 | c = int(input())
256256
71 71 | d = int(input())
257257
72 72 | e = int(input())
258-
73 |-if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
258+
73 |-if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
259259
73 |+if a < b and b < c and c < d < e: # [boolean-chained-comparison]
260260
74 74 | pass
261261
75 75 |

0 commit comments

Comments
 (0)