(self, data: WriteBuffer)
| 394 | self.mypy_comments = mypy_comments if mypy_comments is not None else [] |
| 395 | |
| 396 | def write(self, data: WriteBuffer) -> None: |
| 397 | write_bytes(data, self.defs) |
| 398 | write_bytes(data, self.imports) |
| 399 | write_tag(data, LIST_GEN) |
| 400 | write_int_bare(data, len(self.raw_errors)) |
| 401 | for err in self.raw_errors: |
| 402 | write_parse_error(data, err) |
| 403 | write_tag(data, DICT_INT_GEN) |
| 404 | write_int_bare(data, len(self.ignored_lines)) |
| 405 | for line, codes in self.ignored_lines.items(): |
| 406 | write_int(data, line) |
| 407 | write_str_list(data, codes) |
| 408 | write_bool(data, self.is_partial_stub_package) |
| 409 | write_bool(data, self.uses_template_strings) |
| 410 | write_str(data, self.source_hash) |
| 411 | write_tag(data, LIST_GEN) |
| 412 | write_int_bare(data, len(self.mypy_comments)) |
| 413 | for line, text in self.mypy_comments: |
| 414 | write_int(data, line) |
| 415 | write_str(data, text) |
| 416 | |
| 417 | @classmethod |
| 418 | def read(cls, data: ReadBuffer) -> FileRawData: |
nothing calls this directly
no test coverage detected