Statistics
| Revision:

gvsig-scripting / org.gvsig.scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.app / org.gvsig.scripting.app.mainplugin / src / main / resources-plugin / scripting / lib / pylint / test / functional / too_few_public_methods.py @ 745

History | View | Annotate | Download (505 Bytes)

1
# pylint: disable=missing-docstring
2
from __future__ import print_function
3

    
4
class Aaaa(object): # [too-few-public-methods]
5

    
6
    def __init__(self):
7
        pass
8

    
9
    def meth1(self):
10
        print(self)
11

    
12
    def _dontcount(self):
13
        print(self)
14

    
15

    
16
# Don't emit for these cases.
17
class Klass(object):
18
    """docstring"""
19

    
20
    def meth1(self):
21
        """first"""
22

    
23
    def meth2(self):
24
        """second"""
25

    
26

    
27
class EnoughPublicMethods(Klass):
28
    """We shouldn't emit too-few-public-methods for this."""
29