] > [Python-projects] Not enough public methods (Logilab.org)

Email [Python-projects] Not enough public methods

from
Mateusz Łoskot <mateusz at loskot dot net>
subject
[Python-projects] Not enough public methods
date
2006/01/14 18:19
Hi,

I'd like to ask you for explanation of following [R] message:
"Not enough public methods (0/2)"

PyLint reports it for this class:

class TestClass:
    """This is class documentation."""

    def __init__(self):
        """Default constructor."""
        self.id = 0
        self.name = ""
        self.params = []

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.

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

Cheers
-- 
Mateusz £oskot
http://mateusz.loskot.net
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects


has reply
,