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

Method _add_error_info

mypy/errors.py:683–695  ·  view source on GitHub ↗
(self, file: str, info: ErrorInfo)

Source from the content-addressed store, hash-verified

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,

Callers 3

note_for_infoMethod · 0.95
report_simple_errorMethod · 0.95
add_error_infoMethod · 0.95

Calls 3

_filter_errorMethod · 0.95
appendMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected