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

Method __init__

lean_py/exceptions.py:42–47  ·  view source on GitHub ↗
(self, kind: str, message: str, context: dict | None = None)

Source from the content-addressed store, hash-verified

40 __slots__ = ("kind", "message", "context")
41
42 def __init__(self, kind: str, message: str, context: dict | None = None) -> None:
43 self.kind = kind
44 self.message = message
45 self.context = context or {}
46 # Build a useful str() — RuntimeError uses the first arg.
47 super().__init__(self._format())
48
49 def _format(self) -> str:
50 if self.context:

Callers 1

__init__Method · 0.45

Calls 1

_formatMethod · 0.95

Tested by

no test coverage detected