| 40 | |
| 41 | template <typename T> |
| 42 | T unwrap_expected(const tl::expected<T, Status> &exp) { |
| 43 | if (exp.has_value()) { |
| 44 | return exp.value(); |
| 45 | } |
| 46 | throw_if_error(exp.error()); |
| 47 | return T{}; |
| 48 | } |
| 49 | |
| 50 | void ZVecPyCollection::Initialize(pybind11::module_ &m) { |
| 51 | py::class_<Collection, Collection::Ptr> collection(m, "_Collection"); |
no test coverage detected