Takes 0 positional arguments but 1 was given error tells that an extra argument is being passed to a method. Read more to optimize the number of arguments.