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
I have checked that same problem also occurs in flake8-return so it is not a bug in logic translation, but definitely there is a problem with this rule. I also see #1035 with similar problems related to this plugin/set of rules.
The following code is reported as breaking RET504.
def get_changes(self):
ret = self.changes
self.changes = []
return ret
On one side, it fits in the description, on the other side, I do not see any better way to write such code.
Similarly to #1035 I do not use flake8-return earlier but would like to try these rules when seeing the description in the ruff readme.
The text was updated successfully, but these errors were encountered:
I have checked that same problem also occurs in
flake8-return
so it is not a bug in logic translation, but definitely there is a problem with this rule. I also see #1035 with similar problems related to this plugin/set of rules.The following code is reported as breaking RET504.
On one side, it fits in the description, on the other side, I do not see any better way to write such code.
Similarly to #1035 I do not use
flake8-return
earlier but would like to try these rules when seeing the description in the ruff readme.The text was updated successfully, but these errors were encountered: