bundles / papyri latest / papyri / gen / Gen / prepare_doc_for_one_object
function
papyri.gen:Gen.prepare_doc_for_one_object
source: /papyri/gen.py :1325
Signature
def prepare_doc_for_one_object ( self , target_item : Any , ndoc : Any , * , qa : str , config : Config , aliases : list[str] , api_object : APIObjectInfo ) → tuple[GeneratedDoc, list[Any]] Summary
Get documentation information for one python object
Parameters
target_item: anythe object you want to get documentation for
ndocnumpydoc parsed docstring.
qa: strfully qualified object path.
config: Configcurrent configuratin
aliases: sequenceother aliases for cuttent object.
api_object: APIObjectInfoDescribes the object's type and other relevant information
Returns
: Tuple of two items,: blob:GeneratedDoc with info for current object.
: figs:dict mapping figure names to figure data.
See also
Aliases
-
papyri.gen.Gen.prepare_doc_for_one_object