Why does pylint give this warning?
Skip Montanaro
skip.montanaro at gmail.com
Sun Jan 14 17:31:44 EST 2018
> I cannot replicate this with
>
> $ pylint --version
> Using config file /home/petto/.pylintrc
> pylint 1.8.1,
> astroid 1.6.0
> Python 3.4.0 (default, Apr 11 2014, 13:05:11)
> [GCC 4.8.2]
>
> $ cat pylint_fodder.py
> class FooBar:
> def __len__(self):
> return 42
> def __repr__(self):
> return "FooBar(length={})".format(len(self))
>
> $ pylint pylint_fodder.py
> Using config file /home/petto/.pylintrc
> ************* Module pylint_fodder
> C: 1, 0: Missing module docstring (missing-docstring)
> C: 1, 0: Missing class docstring (missing-docstring)
> R: 1, 0: Too few public methods (0/2) (too-few-public-methods)
Ditto. Mark, do you have any tweaks in your .pylintrc file which might
affect it?
Skip
More information about the Python-list
mailing list