1 | n/a | """This is a test module for test_pydoc""" |
---|
2 | n/a | |
---|
3 | n/a | __author__ = "Benjamin Peterson" |
---|
4 | n/a | __credits__ = "Nobody" |
---|
5 | n/a | __version__ = "1.2.3.4" |
---|
6 | n/a | __xyz__ = "X, Y and Z" |
---|
7 | n/a | |
---|
8 | n/a | class A: |
---|
9 | n/a | """Hello and goodbye""" |
---|
10 | n/a | def __init__(): |
---|
11 | n/a | """Wow, I have no function!""" |
---|
12 | n/a | pass |
---|
13 | n/a | |
---|
14 | n/a | class B(object): |
---|
15 | n/a | NO_MEANING: str = "eggs" |
---|
16 | n/a | pass |
---|
17 | n/a | |
---|
18 | n/a | class C(object): |
---|
19 | n/a | def say_no(self): |
---|
20 | n/a | return "no" |
---|
21 | n/a | def get_answer(self): |
---|
22 | n/a | """ Return say_no() """ |
---|
23 | n/a | return self.say_no() |
---|
24 | n/a | def is_it_true(self): |
---|
25 | n/a | """ Return self.get_answer() """ |
---|
26 | n/a | return self.get_answer() |
---|
27 | n/a | |
---|
28 | n/a | def doc_func(): |
---|
29 | n/a | """ |
---|
30 | n/a | This function solves all of the world's problems: |
---|
31 | n/a | hunger |
---|
32 | n/a | lack of Python |
---|
33 | n/a | war |
---|
34 | n/a | """ |
---|
35 | n/a | |
---|
36 | n/a | def nodoc_func(): |
---|
37 | n/a | pass |
---|