Pylint: super-init-not-called when ancestor class is abstract
11 May
2018
11 May
'18
3:53 p.m.
Hi all, Please CC-me in all answers to this message, I am not subscribed to the mailing list. If I implement an abstract class in Python:
class Ancestor(object): def __init__(self): raise NotImplementedError
Then write a child class:
class Child(Ancestor): def __init__(self): return self
Pylint finds a warning W0231 super-init-not-called on the definition of Child.__init__. IMHO, it should not be the case, as a Child class will never call the constructor of the ancestor. Am I missing something? Best, Duna
2345
Age (days ago)
2345
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dunatotatos