bundles / papyri latest / papyri / gen / Gen / extract_docstring
function
papyri.gen:Gen.extract_docstring
source: /papyri/gen.py :1675
Signature
def extract_docstring ( self , * , qa : str , target_item : Any ) → tuple[str | None, list[Section], APIObjectInfo] Summary
Extract docstring from an object.
Extended Summary
Detects whether an object includes a docstring and parses the object's type.
Parameters
qa: strFully qualified name of the object we are extracting the documentation from
target_item: AnyObject we wish inspect. Can be any kind of object.
Returns
item_docstring: strThe unprocessed object's docstring
sections: list of SectionA list of serialized sections of the docstring
api_object: APIObjectInfoDescribes the object's type and other relevant information
Aliases
-
papyri.gen.Gen.extract_docstring