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

Method num_messages

mypy/errors.py:965–967  ·  view source on GitHub ↗

Return the number of generated messages.

(self)

Source from the content-addressed store, hash-verified

963 self.report_simple_error(file, line, message, code=codes.IGNORE_WITHOUT_CODE)
964
965 def num_messages(self) -> int:
966 """Return the number of generated messages."""
967 return sum(len(x) for x in self.error_info_map.values())
968
969 def is_errors(self) -> bool:
970 """Are there any generated messages?"""

Callers 1

build_innerFunction · 0.80

Calls 3

sumFunction · 0.85
lenFunction · 0.85
valuesMethod · 0.80

Tested by

no test coverage detected