File tree Expand file tree Collapse file tree 2 files changed +57
-0
lines changed
Expand file tree Collapse file tree 2 files changed +57
-0
lines changed Original file line number Diff line number Diff line change 1+ # [missing-module-docstring]
2+ # pylint: disable=too-few-public-methods
3+
4+ def public_documented ():
5+ """It has a docstring."""
6+
7+
8+ def _private_undocumented ():
9+ # Doesn't need a docstring
10+ pass
11+
12+
13+ def _private_documented ():
14+ """It has a docstring."""
15+
16+
17+ class ClassDocumented :
18+ """It has a docstring."""
19+
20+
21+ class ClassUndocumented : # [missing-class-docstring]
22+ pass
23+
24+
25+ def public_undocumented (): # [missing-function-docstring]
26+ pass
27+
28+
29+ def __sizeof__ ():
30+ # Special
31+ pass
32+
33+
34+ def __mangled ():
35+ pass
36+
37+
38+ class Property :
39+ """Don't warn about setters and deleters."""
40+
41+ def __init__ (self ):
42+ self ._value = None
43+
44+ @property
45+ def test (self ):
46+ """Default docstring for setters and deleters."""
47+
48+ @test .setter
49+ def test (self , value ):
50+ self ._value = value
51+
52+ @test .deleter
53+ def test (self ):
54+ pass
Original file line number Diff line number Diff line change 1+ missing-module-docstring:1::Missing module docstring
2+ missing-class-docstring:21:ClassUndocumented:Missing class docstring
3+ missing-function-docstring:25:public_undocumented:Missing function or method docstring
You can’t perform that action at this time.
0 commit comments