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
So this is not really a false positive but more than removing the staticmethod altogether makes us lose a lot of context.
Usually when people define staticmethod like that it's because the behavior is somehow linked to the class.
I feel like this rule should maybe not trigger on static method ?
I'm not so sure, feel free to close.
(Also I feel like operator.itemgetter(slice(...)) is not really readable, I'dl rather define a lambda for these cases)
Anyway, thanks for the tool and the quick response!
The rule FURB118 detects "false positives" on classes methods.
Keywords: "FURB118", "method"
Ruff v0.4.0 used with pre-commit hook:
The text was updated successfully, but these errors were encountered: