MCPcopy
hub / github.com/sphinx-doc/sphinx / __init__

Method __init__

sphinx/directives/code.py:205–213  ·  view source on GitHub ↗
(
        self, filename: str | os.PathLike[str], options: dict[str, Any], config: Config
    )

Source from the content-addressed store, hash-verified

203 ]
204
205 def __init__(
206 self, filename: str | os.PathLike[str], options: dict[str, Any], config: Config
207 ) -> None:
208 self.filename = _StrPath(filename)
209 self.options = options
210 self.encoding = options.get('encoding', config.source_encoding)
211 self.lineno_start = self.options.get('lineno-start', 1)
212
213 self.parse_options()
214
215 def parse_options(self) -> None:
216 for option1, option2 in self.INVALID_OPTIONS_PAIR:

Callers

nothing calls this directly

Calls 3

parse_optionsMethod · 0.95
_StrPathClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected