MCPcopy Index your code
hub / github.com/RustPython/RustPython / docdata

Method docdata

Lib/pydoc.py:1641–1653  ·  view source on GitHub ↗

Produce text documentation for a data descriptor.

(self, object, name=None, mod=None, cl=None, *ignored)

Source from the content-addressed store, hash-verified

1639 return decl + '\n' + (doc and self.indent(doc).rstrip() + '\n')
1640
1641 def docdata(self, object, name=None, mod=None, cl=None, *ignored):
1642 """Produce text documentation for a data descriptor."""
1643 results = []
1644 push = results.append
1645
1646 if name:
1647 push(self.bold(name))
1648 push('\n')
1649 doc = getdoc(object) or ''
1650 if doc:
1651 push(self.indent(doc))
1652 push('\n')
1653 return ''.join(results)
1654
1655 docproperty = docdata
1656

Callers 2

spillMethod · 0.95
spilldescriptorsMethod · 0.95

Calls 4

boldMethod · 0.95
indentMethod · 0.95
getdocFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected