| 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). |