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

Function lean_is_external

lean_py/_runtime.py:441–442  ·  view source on GitHub ↗
(self, o)

Source from the content-addressed store, hash-verified

439 return self.lean_ptr_tag(o) == constants.get("LeanPromise", 244)
440
441 def lean_is_external(self, o):
442 return self.lean_ptr_tag(o) == constants.get("LeanExternal", 254)
443
444 def lean_is_ref(self, o):
445 return self.lean_ptr_tag(o) == constants.get("LeanRef", 253)

Callers 3

leanpy_unwrap_pyobjectFunction · 0.85
lean_py_to_lean_objFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected