(self, file: str, info: ErrorInfo)
| 681 | return info |
| 682 | |
| 683 | def _add_error_info(self, file: str, info: ErrorInfo) -> None: |
| 684 | assert file not in self.flushed_files |
| 685 | # process the stack of ErrorWatchers before modifying any internal state |
| 686 | # in case we need to filter out the error entirely |
| 687 | if self._filter_error(file, info): |
| 688 | return |
| 689 | if file not in self.error_info_map: |
| 690 | self.error_info_map[file] = [] |
| 691 | self.error_info_map[file].append(info) |
| 692 | if info.blocker: |
| 693 | self.has_blockers.add(file) |
| 694 | if info.code in (IMPORT, IMPORT_UNTYPED, IMPORT_NOT_FOUND): |
| 695 | self.seen_import_error = True |
| 696 | |
| 697 | def note_for_info( |
| 698 | self, |
no test coverage detected