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

Method blocker_module

mypy/errors.py:977–983  ·  view source on GitHub ↗

Return the module with a blocking error, or None if not possible.

(self)

Source from the content-addressed store, hash-verified

975 return bool(self.has_blockers)
976
977 def blocker_module(self) -> str | None:
978 """Return the module with a blocking error, or None if not possible."""
979 for path in self.has_blockers:
980 for err in self.error_info_map[path]:
981 if err.blocker:
982 return err.module
983 return None
984
985 def is_errors_for_file(self, file: str) -> bool:
986 """Are there any errors for the given file?"""

Callers 1

raise_errorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected