TypeError: __init__() takes 6 positional arguments but 23 were given
时间: 2023-10-31 17:45:34 浏览: 76
This error message indicates that you are calling the __init__() method of a class with too many arguments. The __init__() method is the constructor method in Python that is called when an object of a class is created.
The error message suggests that you are passing 23 arguments to the __init__() method, but it is defined to only take 6 positional arguments. This means that there is a mismatch between the number of arguments you are passing and the number of arguments that the method expects.
To resolve this error, you should check the code where you are creating an object of the class and passing the arguments to the constructor. Make sure that you are passing the correct number of arguments that match the constructor's signature.
阅读全文