MCPcopy Create free account
hub / github.com/BasisResearch/lean.py / _format

Method _format

lean_py/exceptions.py:49–53  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

47 super().__init__(self._format())
48
49 def _format(self) -> str:
50 if self.context:
51 ctx = ", ".join(f"{k}={v!r}" for k, v in self.context.items())
52 return f"[{self.kind}] {self.message} ({ctx})"
53 return f"[{self.kind}] {self.message}"
54
55
56class LeanPyCallbackError(LeanError):

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected