MCPcopy Index your code
hub / github.com/sphinx-doc/sphinx / get_line

Method get_line

sphinx/pycode/parser.py:336–338  ·  view source on GitHub ↗

Returns specified line.

(self, lineno: int)

Source from the content-addressed store, hash-verified

334 return None
335
336 def get_line(self, lineno: int) -> str:
337 """Returns specified line."""
338 return self.buffers[lineno - 1]
339
340 def _handle_assignment(self, node: ast.Assign | ast.AnnAssign) -> None:
341 """Handles Assign node and pick up a variable comment."""

Callers 3

_handle_assignmentMethod · 0.95
_collect_doc_commentMethod · 0.95
visit_TypeAliasMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected