51struct type_caster<
lagrange::python::StubType<T, Hint>>
54 using TCaster = make_caster<T>;
56 NB_TYPE_CASTER(Wrapper, const_name(Hint::value))
58 bool from_python(handle src, uint8_t flags, cleanup_list* cleanup)
noexcept
61 if (!caster.from_python(src, flags, cleanup))
return false;
62 value.value = caster.operator cast_t<T>();
66 static handle from_cpp(
const Wrapper& w, rv_policy policy, cleanup_list* cleanup)
noexcept
68 return TCaster::from_cpp(w.value, policy, cleanup);