blob: 9b3c4b2dd9915fa81f64448bde29aba9ac2cbd27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# pylint: disable=missing-docstring
from __future__ import print_function
class Aaaa(object): # [too-few-public-methods]
def __init__(self):
pass
def meth1(self):
print(self)
def _dontcount(self):
print(self)
# Don't emit for these cases.
class Klass(object):
"""docstring"""
def meth1(self):
"""first"""
def meth2(self):
"""second"""
class EnoughPublicMethods(Klass):
"""We shouldn't emit too-few-public-methods for this."""
|