Closed kasium closed 2 years ago
The below code is flagged with SIM111, but if I would would use the suggested code, the call_method call would be lost.
call_method
for a in my_list: if a == 2: return False call_method() return True
Sorry that this took so long. I'll make a release with this fix today :crossed_fingers:
Desired change
Explanation
The below code is flagged with SIM111, but if I would would use the suggested code, the
call_method
call would be lost.Example