@@ -252,15 +252,15 @@ SIM103.py:123:5: SIM103 [*] Return the condition `not 10 < a` directly
252
252
127 125 |
253
253
128 126 | def f ():
254
254
255
- SIM103 .py :129 :5 : SIM103 [* ] Return the condition ` not 10 in a` directly
255
+ SIM103 .py :129 :5 : SIM103 [* ] Return the condition ` 10 not in a` directly
256
256
|
257
257
128 | def f ():
258
258
129 | / if 10 in a :
259
259
130 | | return False
260
260
131 | | return True
261
261
| | _______________ ^ SIM103
262
262
|
263
- = help : Replace with ` return not 10 in a`
263
+ = help : Replace with ` return 10 not in a`
264
264
265
265
ℹ Unsafe fix
266
266
126 126 |
@@ -269,20 +269,20 @@ SIM103.py:129:5: SIM103 [*] Return the condition `not 10 in a` directly
269
269
129 | - if 10 in a :
270
270
130 | - return False
271
271
131 | - return True
272
- 129 | + return not 10 in a
272
+ 129 | + return 10 not in a
273
273
132 130 |
274
274
133 131 |
275
275
134 132 | def f ():
276
276
277
- SIM103 .py :135 :5 : SIM103 [* ] Return the condition ` not 10 not in a` directly
277
+ SIM103 .py :135 :5 : SIM103 [* ] Return the condition ` 10 in a` directly
278
278
|
279
279
134 | def f ():
280
280
135 | / if 10 not in a :
281
281
136 | | return False
282
282
137 | | return True
283
283
| | _______________ ^ SIM103
284
284
|
285
- = help : Replace with ` return not 10 not in a`
285
+ = help : Replace with ` return 10 in a`
286
286
287
287
ℹ Unsafe fix
288
288
132 132 |
@@ -291,20 +291,20 @@ SIM103.py:135:5: SIM103 [*] Return the condition `not 10 not in a` directly
291
291
135 | - if 10 not in a :
292
292
136 | - return False
293
293
137 | - return True
294
- 135 | + return not 10 not in a
294
+ 135 | + return 10 in a
295
295
138 136 |
296
296
139 137 |
297
297
140 138 | def f ():
298
298
299
- SIM103 .py :141 :5 : SIM103 [* ] Return the condition ` not a is 10` directly
299
+ SIM103 .py :141 :5 : SIM103 [* ] Return the condition ` a is not 10` directly
300
300
|
301
301
140 | def f ():
302
302
141 | / if a is 10 :
303
303
142 | | return False
304
304
143 | | return True
305
305
| | _______________ ^ SIM103
306
306
|
307
- = help : Replace with ` return not a is 10`
307
+ = help : Replace with ` return a is not 10`
308
308
309
309
ℹ Unsafe fix
310
310
138 138 |
@@ -313,20 +313,20 @@ SIM103.py:141:5: SIM103 [*] Return the condition `not a is 10` directly
313
313
141 | - if a is 10 :
314
314
142 | - return False
315
315
143 | - return True
316
- 141 | + return not a is 10
316
+ 141 | + return a is not 10
317
317
144 142 |
318
318
145 143 |
319
319
146 144 | def f ():
320
320
321
- SIM103 .py :147 :5 : SIM103 [* ] Return the condition ` not a is not 10` directly
321
+ SIM103 .py :147 :5 : SIM103 [* ] Return the condition ` a is 10` directly
322
322
|
323
323
146 | def f ():
324
324
147 | / if a is not 10 :
325
325
148 | | return False
326
326
149 | | return True
327
327
| | _______________ ^ SIM103
328
328
|
329
- = help : Replace with ` return not a is not 10`
329
+ = help : Replace with ` return a is 10`
330
330
331
331
ℹ Unsafe fix
332
332
144 144 |
@@ -335,20 +335,20 @@ SIM103.py:147:5: SIM103 [*] Return the condition `not a is not 10` directly
335
335
147 | - if a is not 10 :
336
336
148 | - return False
337
337
149 | - return True
338
- 147 | + return not a is not 10
338
+ 147 | + return a is 10
339
339
150 148 |
340
340
151 149 |
341
341
152 150 | def f ():
342
342
343
- SIM103 .py :153 :5 : SIM103 [* ] Return the condition ` not a = = 10` directly
343
+ SIM103 .py :153 :5 : SIM103 [* ] Return the condition ` a ! = 10` directly
344
344
|
345
345
152 | def f ():
346
346
153 | / if a == 10 :
347
347
154 | | return False
348
348
155 | | return True
349
349
| | _______________ ^ SIM103
350
350
|
351
- = help : Replace with ` return not a = = 10`
351
+ = help : Replace with ` return a ! = 10`
352
352
353
353
ℹ Unsafe fix
354
354
150 150 |
@@ -357,20 +357,20 @@ SIM103.py:153:5: SIM103 [*] Return the condition `not a == 10` directly
357
357
153 | - if a == 10 :
358
358
154 | - return False
359
359
155 | - return True
360
- 153 | + return not a = = 10
360
+ 153 | + return a ! = 10
361
361
156 154 |
362
362
157 155 |
363
363
158 156 | def f ():
364
364
365
- SIM103 .py :159 :5 : SIM103 [* ] Return the condition ` not a ! = 10` directly
365
+ SIM103 .py :159 :5 : SIM103 [* ] Return the condition ` a = = 10` directly
366
366
|
367
367
158 | def f ():
368
368
159 | / if a != 10 :
369
369
160 | | return False
370
370
161 | | return True
371
371
| | _______________ ^ SIM103
372
372
|
373
- = help : Replace with ` return not a ! = 10`
373
+ = help : Replace with ` return a = = 10`
374
374
375
375
ℹ Unsafe fix
376
376
156 156 |
@@ -379,4 +379,4 @@ SIM103.py:159:5: SIM103 [*] Return the condition `not a != 10` directly
379
379
159 | - if a != 10 :
380
380
160 | - return False
381
381
161 | - return True
382
- 159 | + return not a ! = 10
382
+ 159 | + return a = = 10
0 commit comments