smpl_doc.doc.insert

smpl_doc.doc.insert(txt)[source]

Insert txt in the target function docstring.

Examples

>>> @insert('hi')
... def ho(): pass
>>> ho.__doc__
'hi'
>>> @insert(ho)
... def hi(): pass
>>> hi.__doc__
'hi'