Staging
v0.5.1
https://github.com/python/cpython
Revision 7f82f22eba1312617e1aa19cb916da1aae1609a4 authored by Raymond Hettinger on 30 November 2020, 17:55:13 UTC, committed by GitHub on 30 November 2020, 17:55:13 UTC
1 parent e41bfd1
Raw File
Tip revision: 7f82f22eba1312617e1aa19cb916da1aae1609a4 authored by Raymond Hettinger on 30 November 2020, 17:55:13 UTC
bpo-42501: Revise the usage note for Enums with the choices (GH-23563)
Tip revision: 7f82f22
pydoc_mod.py
"""This is a test module for test_pydoc"""

__author__ = "Benjamin Peterson"
__credits__ = "Nobody"
__version__ = "1.2.3.4"
__xyz__ = "X, Y and Z"

class A:
    """Hello and goodbye"""
    def __init__():
        """Wow, I have no function!"""
        pass

class B(object):
    NO_MEANING: str = "eggs"
    pass

class C(object):
    def say_no(self):
        return "no"
    def get_answer(self):
        """ Return say_no() """
        return self.say_no()
    def is_it_true(self):
        """ Return self.get_answer() """
        return self.get_answer()

def doc_func():
    """
    This function solves all of the world's problems:
    hunger
    lack of Python
    war
    """

def nodoc_func():
    pass
back to top