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

Method report_hang

mypy/semanal.py:7875–7884  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7873 self.patches.append((priority, patch))
7874
7875 def report_hang(self) -> None:
7876 print("Deferral trace:")
7877 for mod, line in self.deferral_debug_context:
7878 print(f" {mod}:{line}")
7879 self.errors.report(
7880 -1,
7881 -1,
7882 "INTERNAL ERROR: maximum semantic analysis iteration count reached",
7883 blocker=True,
7884 )
7885
7886 def add_plugin_dependency(self, trigger: str, target: str | None = None) -> None:
7887 """Add dependency from trigger to a target.

Callers 2

process_top_levelsFunction · 0.80

Calls 2

printFunction · 0.85
reportMethod · 0.45

Tested by

no test coverage detected