def __init__(self, document: docutils.nodes.document, fields: Sequence[Field]): self._document = document """A ReStructuredText document, encoding the docstring.""" document.reporter = OptimizedReporter( document.reporter.source, 'SEVERE', 'SEVERE', '') ParsedDocstring.__init__(self, fields)
def __init__(self, document, fields): """ @type document: C{docutils.nodes.document} """ self._document = document document.reporter = OptimizedReporter(document.reporter.source, 'SEVERE', 'SEVERE', '') ParsedDocstring.__init__(self, fields)
def __init__(self, text): ParsedDocstring.__init__(self, ()) self._text = text
def __init__(self, annotation: ast.expr) -> None: ParsedDocstring.__init__(self, ()) self.annotation = annotation
def __init__(self, annotation): ParsedDocstring.__init__(self, ()) self.annotation = annotation
def to_html( parsed_docstring: ParsedDocstring, linker: DocstringLinker = NotFoundLinker() ) -> str: return flatten(parsed_docstring.to_stan(linker))