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

Function leanpy_make_callable

LeanPy/native/python_bridge.c:1047–1050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1045 if (!instance) {
1046 lean_dec(closure);
1047 return raise_py_error();
1048 }
1049 LeanCallableObject *self = (LeanCallableObject *)instance;
1050 self->closure = closure; /* owned */
1051 self->has_kw = has_kw;
1052 return lean_io_result_mk_ok(wrap_pyobject(instance));
1053}

Callers

nothing calls this directly

Calls 1

make_callable_objFunction · 0.85

Tested by

no test coverage detected