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

Method has_many_errors

mypy/errors.py:839–849  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

837 self.note_for_info(file, info, message, info.code, only_once=True, priority=20)
838
839 def has_many_errors(self) -> bool:
840 if self.options.many_errors_threshold < 0:
841 return False
842 if len(self.error_info_map) >= self.options.many_errors_threshold:
843 return True
844 if (
845 sum(len(errors) for errors in self.error_info_map.values())
846 >= self.options.many_errors_threshold
847 ):
848 return True
849 return False
850
851 def report_hidden_errors(self, file: str, info: ErrorInfo) -> None:
852 message = (

Callers 1

add_error_infoMethod · 0.95

Calls 3

lenFunction · 0.85
sumFunction · 0.85
valuesMethod · 0.80

Tested by

no test coverage detected