MCPcopy Index your code
hub / github.com/absadiki/pywhispercpp / has_python_user_data

Function has_python_user_data

src/main.cpp:31–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29using namespace pybind11::literals; // to bring in the `_a` literal
30
31inline bool has_python_user_data(const py::object & obj) {
32 return obj.ptr() != nullptr && obj.ptr() != Py_None;
33}
34
35
36py::object py_log_callback;

Callers 5

_new_segment_callbackFunction · 0.85
_encoder_begin_callbackFunction · 0.85
_logits_filter_callbackFunction · 0.85
_abort_callbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected