1use crate::{derive_utils::PyFunctionArguments, types::PyCFunction, PyResult};
2
3pub use crate::impl_::pymethods::PyMethodDef;
4
5pub fn _wrap_pyfunction<'a>(
6 method_def: &PyMethodDef,
7 py_or_module: impl Into<PyFunctionArguments<'a>>,
8) -> PyResult<&'a PyCFunction> {
9 PyCFunction::internal_new(method_def, py_or_module:py_or_module.into())
10}
11