lisa.utils.docstring_update#

lisa.utils.docstring_update(msg)[source]#

Create a class to inherit from in order to add a snippet of doc at the end of the docstring of all direct and indirect subclasses:

class C(docstring_update('world')):
    "hello"

assert C.__doc__ == 'hello\n\nworld'