[Python-projects] Abstract intermediate class not recognized as such
Sylvain Thénault
sylvain.thenault at logilab.fr
Fri Sep 12 08:56:51 CEST 2008
On Thu, Sep 11, 2008 at 11:23:19PM -0500, skip at pobox.com wrote:
> Given this class hierarchy:
>
> class A(object):
> def methA(self):
> raise NotImplementedError("implement methA in subclass")
>
> class B(A):
> def methB(self):
> raise NotImplementedError("implement methB in subclass")
>
> class C(B):
> def methA(self):
> print "methA"
>
> def methB(self):
> print "methB"
>
> pylint (v 0.14.0, astng 0.17.2, common 0.28.2) complains that B doesn't
> provide a definition of methA even though it is itself both a base class for
> other classes and defines an unimplemented methB class (both making it a
> candidate abstract class). Seems that pylint should recognize on one count
> or both that B doesn't need to provide a definition for methA.
http://www.logilab.org/ticket/5975
> Also, note that the PyPI entry for pylint is still 0.14.0 even though your
> latest public release is 0.15.0.
We'll fix that and make public announce for this release.
Thanks for the report, regards,
--
Sylvain Thénault LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
Python et calcul scientifique: http://www.logilab.fr/science
More information about the Python-Projects
mailing list