Email Re: [Python-projects] Not enough public methods

from
to
Mateusz Łoskot <mateusz at loskot dot net>
subject
Re: [Python-projects] Not enough public methods
date
2006/01/14 18:44
Thanks for using pylint !

On Sat, Jan 14, 2006 at 06:19:59PM +0100, Mateusz ?oskot wrote:
> I'd like to have TestClass as a simple structure (struct from C) so I
> don't need any methods.
> Unfortunately, I can't understand it's explanation I found in the manual:

> R0903: Used when class has not enough public methods. This message belongs
> to the design checker.

>From an abstract design point-of-view, an empty class is not good. If
you have a perfectly valid reason for the class above, just tell
pylint to shut up.

> What is wrong? What should I add to my class to make PyLint happy? :-)

Just disable the R0903 message if it annoys you or just ignore it in
this case.

-- 
Nicolas Chauvat

logilab.fr - services en informatique avancée et gestion de connaissances  
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects


is a reply to
has reply