[too-many-function-args] False negative when calling super().__init__()
with non-self argument
#9519
Labels
False Negative 🦋
No message is emitted but something is wrong with the code
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
Bug
no error given in pylint, no run in Python
Configuration
No response
Command used
Pylint output
Expected behavior
Microsoft Windows [Version 10.0.19045.4170]
(c) Microsoft Corporation. All rights reserved.
C:\Users\Me>cd C:\Users\Me\Documents\Programming\Python\Mylib\experimental\subclassing\more than 1 base\discussions
C:\Users\Me\Documents\Programming\Python\Mylib\experimental\subclassing\more than 1 base\discussions>test.py
Traceback (most recent call last):
File "C:\Users\Me\Documents\Programming\Python\Mylib\experimental\subclassing\more than 1 base\discussions\test.py", l
ine 17, in
Win('hello')
File "C:\Users\Me\Documents\Programming\Python\Mylib\experimental\subclassing\more than 1 base\discussions\test.py", l
ine 13, in init
super().init(txt)
TypeError: object.init() takes exactly one argument (the instance to initialize)
C:\Users\Me\Documents\Programming\Python\Mylib\experimental\subclassing\more than 1 base\discussions>
Pylint version
OS / Environment
Windows 10
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: