MCPcopy Index your code
hub / github.com/python/mypy / __init__

Method __init__

mypy/report.py:470–479  ·  view source on GitHub ↗
(self, reports: Reports, output_dir: str)

Source from the content-addressed store, hash-verified

468 """
469
470 def __init__(self, reports: Reports, output_dir: str) -> None:
471 super().__init__(reports, output_dir)
472
473 self.xslt_html_path = os.path.join(reports.data_dir, "xml", "mypy-html.xslt")
474 self.xslt_txt_path = os.path.join(reports.data_dir, "xml", "mypy-txt.xslt")
475 self.css_html_path = os.path.join(reports.data_dir, "xml", "mypy-html.css")
476 xsd_path = os.path.join(reports.data_dir, "xml", "mypy.xsd")
477 self.schema = etree.XMLSchema(etree.parse(xsd_path))
478 self.last_xml: Any | None = None
479 self.files: list[FileInfo] = []
480
481 # XML doesn't like control characters, but they are sometimes
482 # legal in source code (e.g. comments, string literals).

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
joinMethod · 0.45

Tested by

no test coverage detected