Python

Python

Made by DeepSource

Too many positional arguments in function call PYL-E1121

Bug risk
Critical

Too many positional arguments are provided while calling the function. Check the function signature of the function being called to make sure that you are passing the right arguments.

Bad practice

string = 'abcd'
string.center(10, '=', ' ')  # center only takes 2 arguments

Recommended

string = 'abcd'
string.center(10, '=')