forked from SonarSource/sonar-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocstring.py
More file actions
35 lines (25 loc) · 724 Bytes
/
Copy pathdocstring.py
File metadata and controls
35 lines (25 loc) · 724 Bytes
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
30
31
32
33
34
35
"""
This is a module docstring
"""
def function_with_docstring():
"""This is a function docstring"""
pass
def function_without_docstring():
pass
def function_with_empty_docstring():
""" """
pass
def one_line_function_with_docstring(): "This is a function docstring"; pass
def one_line_function_without_docstring(): pass; "This is not a docstring"
class ClassWithDocstring:
"""This is a class docstring"""
pass
class ClassWithoutDocstring:
def method_with_docstring():
''' This is a method docstring '''
pass
def method_without_docstring():
pass
def function_with_unusual_docstring(): "This is still" \
"a docstring"; pass
def function_with_no_docstring(): "This is not", "a docstring"; pass