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 autofix for C413 can lead to bugs if the key parameter is used. Here is a little code example to show, that the results before and after the autofix are different.
Wow, didn't know about this. I think the solution would be to make the auto-fix "sometimes" and not fix it when there's a key parameter present. The key parameter makes the sorting different for reversed and sorted(..., reverse=True).
Edit: Not making the auto-fix "sometimes" but rather not flagging this.
The autofix for C413 can lead to bugs if the
key
parameter is used. Here is a little code example to show, that the results before and after the autofix are different.Here is the output:
The text was updated successfully, but these errors were encountered: