parseDocstring

emlib.doctools.parseDocstring(docstr, fmt='google')[source]

Parses a docstring, returns a ParsedDef

Parameters:
  • docstr (str) – the docstring to parse

  • fmt – the format used for arguments/returns

Return type:

ParsedDef

Returns:

a ParsedDef