[flake8-return] - Add fixes for (RET505, RET506, RET507, RET508) (#9595)

This commit is contained in:
Steve C 2024-01-25 02:28:32 -05:00 committed by GitHub
parent dba2cb79cb
commit ffd13e65ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 1027 additions and 7 deletions

View file

@ -131,6 +131,37 @@ def bar3(x, y, z):
return None
def bar4(x):
if True:
return
else:
# comment
pass
def bar5():
if True:
return
else: # comment
pass
def bar6():
if True:
return
else\
:\
# comment
pass
def bar7():
if True:
return
else\
: # comment
pass
x = 0
if x == 1: