R0913 too-many-arguments


'Too many arguments (%s/%s)'


Used when a function or method takes too many arguments.


def fn(a, b, c, d, e, f):
1:0: R0913: Too many arguments (6/5)

Why bother?

When a function or method takes a lot of arguments, it is hard to understand and remember what their purpose is. If the arguments are closely related, maybe there is a new class that groups them waiting to be implemented.

Running Pylint locally? In your CI?

There is a better way! Run PyCodeQual & get Pylint findings with history, diffs and statistics.

Click here to find out more.