You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The R504 doesn't detect that the variable is conditionally modified prior to return.
What I Did
$ flake8 test.py
test.py:5:12: R504 you shouldn`t assign value to variable if it will be use only as return value$ cat test.pydef foo(bar): value = []if bar: value = value[:1]return value
The text was updated successfully, but these errors were encountered:
Description
The R504 doesn't detect that the variable is conditionally modified prior to return.
What I Did
The text was updated successfully, but these errors were encountered: