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

Function lean_py_to_bool

LeanPy/native/python_bridge.c:567–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

565 p_Py_DecRef(d);
566 return raise_py_error();
567 }
568 }
569 return lean_io_result_mk_ok(wrap_pyobject(d));
570}
571
572/* ------------------------------------------------------------------ */
573/* Conversions: Python → Lean */
574/* ------------------------------------------------------------------ */
575

Callers

nothing calls this directly

Calls 3

unwrap_pyobjectFunction · 0.85
raise_py_errorFunction · 0.85
lean_boxFunction · 0.85

Tested by

no test coverage detected