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

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
code-quality mailing list
code-quality@python.org
https://mail.python.org/mailman/listinfo/code-quality

Reply via email to