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

Method _load_registry

lean_py/library.py:518–523  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

516 if len(symbols) == 1:
517 return symbols[0]
518 if symbols:
519 raise RuntimeError(
520 f"library has multiple `initialize_*` symbols and none "
521 f"matches `_{self.name}`: {symbols}"
522 )
523 raise RuntimeError(
524 f"library does not export an `initialize_*` symbol for "
525 f"`{self.name}`; was it compiled with `@[python]` attributes "
526 f"and `precompileModules`/`shared`?"

Callers 1

__init__Method · 0.95

Calls 2

_call_string_exportMethod · 0.95
from_json_stringsMethod · 0.80

Tested by

no test coverage detected