blob: 9c1fff5c2f2c1491d676e7ce75c2752497a64b71 [file] [log] [blame]
Georg Brandlb533e262008-05-25 18:19:30 +00001"""This is a test module for test_pydoc"""
2
3__author__ = "Benjamin Peterson"
4__credits__ = "Nobody"
5__version__ = "1.2.3.4"
Alexander Belopolskya47bbf52010-11-18 01:52:54 +00006__xyz__ = "X, Y and Z"
Georg Brandlb533e262008-05-25 18:19:30 +00007
8class A:
9 """Hello and goodbye"""
10 def __init__():
11 """Wow, I have no function!"""
12 pass
13
14class B(object):
Yury Selivanovf8cb8a12016-09-08 20:50:03 -070015 NO_MEANING: str = "eggs"
Georg Brandlb533e262008-05-25 18:19:30 +000016 pass
17
Benjamin Petersoned1160b2014-06-07 16:44:00 -070018class C(object):
19 def say_no(self):
20 return "no"
21 def get_answer(self):
22 """ Return say_no() """
23 return self.say_no()
24 def is_it_true(self):
25 """ Return self.get_answer() """
26 return self.get_answer()
27
Georg Brandlb533e262008-05-25 18:19:30 +000028def doc_func():
29 """
30 This function solves all of the world's problems:
31 hunger
32 lack of Python
33 war
34 """
35
36def nodoc_func():
37 pass