@@ -252,15 +252,15 @@ SIM103.py:123:5: SIM103 [*] Return the condition `not 10 < a` directly
252252127 125 |
253253128 126 | def f ():
254254
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
256256 |
257257128 | def f ():
258258129 | / if 10 in a :
259259130 | | return False
260260131 | | return True
261261 | | _______________ ^ SIM103
262262 |
263- = help : Replace with ` return not 10 in a`
263+ = help : Replace with ` return 10 not in a`
264264
265265ℹ Unsafe fix
266266126 126 |
@@ -269,20 +269,20 @@ SIM103.py:129:5: SIM103 [*] Return the condition `not 10 in a` directly
269269129 | - if 10 in a :
270270130 | - return False
271271131 | - return True
272- 129 | + return not 10 in a
272+ 129 | + return 10 not in a
273273132 130 |
274274133 131 |
275275134 132 | def f ():
276276
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
278278 |
279279134 | def f ():
280280135 | / if 10 not in a :
281281136 | | return False
282282137 | | return True
283283 | | _______________ ^ SIM103
284284 |
285- = help : Replace with ` return not 10 not in a`
285+ = help : Replace with ` return 10 in a`
286286
287287ℹ Unsafe fix
288288132 132 |
@@ -291,20 +291,20 @@ SIM103.py:135:5: SIM103 [*] Return the condition `not 10 not in a` directly
291291135 | - if 10 not in a :
292292136 | - return False
293293137 | - return True
294- 135 | + return not 10 not in a
294+ 135 | + return 10 in a
295295138 136 |
296296139 137 |
297297140 138 | def f ():
298298
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
300300 |
301301140 | def f ():
302302141 | / if a is 10 :
303303142 | | return False
304304143 | | return True
305305 | | _______________ ^ SIM103
306306 |
307- = help : Replace with ` return not a is 10`
307+ = help : Replace with ` return a is not 10`
308308
309309ℹ Unsafe fix
310310138 138 |
@@ -313,20 +313,20 @@ SIM103.py:141:5: SIM103 [*] Return the condition `not a is 10` directly
313313141 | - if a is 10 :
314314142 | - return False
315315143 | - return True
316- 141 | + return not a is 10
316+ 141 | + return a is not 10
317317144 142 |
318318145 143 |
319319146 144 | def f ():
320320
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
322322 |
323323146 | def f ():
324324147 | / if a is not 10 :
325325148 | | return False
326326149 | | return True
327327 | | _______________ ^ SIM103
328328 |
329- = help : Replace with ` return not a is not 10`
329+ = help : Replace with ` return a is 10`
330330
331331ℹ Unsafe fix
332332144 144 |
@@ -335,20 +335,20 @@ SIM103.py:147:5: SIM103 [*] Return the condition `not a is not 10` directly
335335147 | - if a is not 10 :
336336148 | - return False
337337149 | - return True
338- 147 | + return not a is not 10
338+ 147 | + return a is 10
339339150 148 |
340340151 149 |
341341152 150 | def f ():
342342
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
344344 |
345345152 | def f ():
346346153 | / if a == 10 :
347347154 | | return False
348348155 | | return True
349349 | | _______________ ^ SIM103
350350 |
351- = help : Replace with ` return not a = = 10`
351+ = help : Replace with ` return a ! = 10`
352352
353353ℹ Unsafe fix
354354150 150 |
@@ -357,20 +357,20 @@ SIM103.py:153:5: SIM103 [*] Return the condition `not a == 10` directly
357357153 | - if a == 10 :
358358154 | - return False
359359155 | - return True
360- 153 | + return not a = = 10
360+ 153 | + return a ! = 10
361361156 154 |
362362157 155 |
363363158 156 | def f ():
364364
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
366366 |
367367158 | def f ():
368368159 | / if a != 10 :
369369160 | | return False
370370161 | | return True
371371 | | _______________ ^ SIM103
372372 |
373- = help : Replace with ` return not a ! = 10`
373+ = help : Replace with ` return a = = 10`
374374
375375ℹ Unsafe fix
376376156 156 |
@@ -379,4 +379,4 @@ SIM103.py:159:5: SIM103 [*] Return the condition `not a != 10` directly
379379159 | - if a != 10 :
380380160 | - return False
381381161 | - return True
382- 159 | + return not a ! = 10
382+ 159 | + return a = = 10
0 commit comments