pub type Func = unsafe fn(Python<'_>, *mut PyObject, *mut Py_buffer) -> PyResult<()>;
Py_3_11
Py_LIMITED_API