| 132 | }; |
| 133 | |
| 134 | void registerPythonScalarFunction( |
| 135 | pybind11::function callback, |
| 136 | std::string alias, |
| 137 | TypePtr returnType, |
| 138 | int numArgs) { |
| 139 | bolt::exec::registerVectorFunction( |
| 140 | alias, |
| 141 | bolt::python::getSignatures(returnType), |
| 142 | std::make_unique<UserDefinedPythonScalarFunction>( |
| 143 | numArgs, std::move(callback), returnType)); |
| 144 | } |
| 145 | } // namespace bytedance::bolt::py |
nothing calls this directly
no test coverage detected