diff options
Diffstat (limited to 'tests/functional/t/too/too_many_function_args.py')
-rw-r--r-- | tests/functional/t/too/too_many_function_args.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/functional/t/too/too_many_function_args.py b/tests/functional/t/too/too_many_function_args.py new file mode 100644 index 000000000..c5ca4f78e --- /dev/null +++ b/tests/functional/t/too/too_many_function_args.py @@ -0,0 +1,19 @@ +"""https://github.com/PyCQA/pylint/issues/3675""" + + +def noop(x): # pylint: disable=invalid-name + """Return value unchanged""" + return x + + +def add(x, y): # pylint: disable=invalid-name + """Add two values""" + return x + y + + +def main(param): + """Should not emit too-many-function-args""" + tmp = noop # matched first + if param == 0: + tmp = add + return tmp(1, 1.01) |