ast.get_docstring(node, clean=True)
Return the docstring of the given node (which must be a FunctionDef
, ClassDef
or Module
node), or None
if it has no docstring. If clean is true, clean up the docstring’s indentation with inspect.cleandoc()
.
Please login to continue.