MCPcopy Create free account
hub / github.com/PyO3/pyo3 / function_with_pycfunction_arg

Function function_with_pycfunction_arg

tests/test_pyfunction.rs:168–172  ·  view source on GitHub ↗
(
    fun: &Bound<'py, PyCFunction>,
)

Source from the content-addressed store, hash-verified

166
167#[pyfunction]
168fn function_with_pycfunction_arg<'py>(
169 fun: &Bound<'py, PyCFunction>,
170) -> PyResult<Bound<'py, PyAny>> {
171 fun.call((), None)
172}
173
174#[test]
175fn test_functions_with_function_args() {

Callers

nothing calls this directly

Calls 1

callMethod · 0.45

Tested by

no test coverage detected