MCPcopy
hub / github.com/python/mypy / new_messages

Method new_messages

mypy/errors.py:1123–1137  ·  view source on GitHub ↗

Return a string list of new error messages. Use a form suitable for displaying to the user. Errors from different files are ordered based on the order in which they first generated an error.

(self)

Source from the content-addressed store, hash-verified

1121 return None
1122
1123 def new_messages(self) -> list[str]:
1124 """Return a string list of new error messages.
1125
1126 Use a form suitable for displaying to the user.
1127 Errors from different files are ordered based on the order in which
1128 they first generated an error.
1129 """
1130 msgs = []
1131 for path in self.error_info_map.keys():
1132 if path not in self.flushed_files:
1133 error_tuples = self.file_messages(path)
1134 msgs.extend(
1135 self.format_messages(path, error_tuples, formatter=self.error_formatter)
1136 )
1137 return msgs
1138
1139 def targets(self) -> set[str]:
1140 """Return a set of all targets that contain errors."""

Callers 6

raise_errorMethod · 0.95
parse_source_fileFunction · 0.95
report_internal_errorFunction · 0.45
updateMethod · 0.45
triggerMethod · 0.45

Calls 4

file_messagesMethod · 0.95
format_messagesMethod · 0.95
keysMethod · 0.80
extendMethod · 0.80

Tested by

no test coverage detected