Lines Matching refs:doc
83 doc = obj.__doc__
84 if not doc:
87 doc = f'{obj.__name__}: Any'
88 sig = doc.partition('\n')[0].split('.', 1)[-1]
93 doc = obj.__doc__
94 if not doc:
97 doc = ''
102 doc = doc.strip()
104 sig, _, doc = doc.partition('\n')
105 doc, _, link = doc.rpartition('\n')
107 summary, _, docbody = doc.partition('\n')
151 doc = f'"""{summary}\n\n{docbody}\n\n"""'
153 doc = f'"""{summary}"""'
154 return textwrap.indent(doc, Lines.INDENT)
162 doc = f'#: {kind} ``{name}`` of type :class:`{typename}`'
168 doc = docstring(function)
175 doc = docstring(method)
182 doc = docstring(datadescr)
195 doc = f'"""{prop.__doc__}"""'
196 doc = textwrap.indent(doc, Lines.INDENT)