B026 False negative on class methods
Klim314 opened this issue · comments
Kenneth Lim commented
Summary
B026 does not apply to class methods, only to functions
Version
Replicated on version 23.9.16
Sample code
def foo(a, b, c):
pass
foo(a=1, b=2, c=3, *[1]) # linting error here
class Bar:
def foo(self, a, b, c):
pass
Bar().foo(a=1, b=2, c=3, *[1]) # no linting error
Jelle Zijlstra commented
Good catch. This is likely fixable by unindenting
Line 443 in 78d08a7