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

Method wrapper_for

lean_py/marshal.py:636–642  ·  view source on GitHub ↗
(self, t: TypeRepr)

Source from the content-addressed store, hash-verified

634 return self._decode_inductive(ti, lean_obj.ptr)
635
636 def wrapper_for(self, t: TypeRepr) -> TypeWrapper:
637 key = self._key(t)
638 if key in self._cache:
639 return self._cache[key]
640 w = self._build_wrapper(t)
641 self._cache[key] = w
642 return w
643
644 def _build_wrapper(self, t: TypeRepr) -> TypeWrapper:
645 k = t.kind

Callers 5

_ctor_field_layoutMethod · 0.95
_decode_inductiveMethod · 0.95
_encode_inductiveMethod · 0.95
_build_wrapperMethod · 0.95
_build_callableFunction · 0.80

Calls 2

_keyMethod · 0.95
_build_wrapperMethod · 0.95

Tested by

no test coverage detected