MCPcopy Create free account
hub / github.com/sphinx-doc/sphinx / get_line

Method get_line

sphinx/pycode/parser.py:152–154  ·  view source on GitHub ↗

Returns specified line.

(self, lineno: int)

Source from the content-addressed store, hash-verified

150 self.previous: Token | None = None
151
152 def get_line(self, lineno: int) -> str:
153 """Returns specified line."""
154 return self.buffers[lineno - 1]
155
156 def fetch_token(self) -> Token | None:
157 """Fetch the next token from source code.

Callers 1

finalize_blockMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected