pyo3-ffi 0.30.1

Python-API bindings for the PyO3 ecosystem
Documentation
compat_function!(
    originally_defined_for(all(
        not(PyPy),
        any(Py_3_10, not(Py_LIMITED_API)) // Added to python in 3.9 but to limited API in 3.10
    ));

    #[inline]
    pub unsafe fn PyObject_CallNoArgs(obj: *mut crate::PyObject) -> *mut crate::PyObject {
        crate::PyObject_CallObject(obj, core::ptr::null_mut())
    }
);

compat_function!(
    originally_defined_for(not(any(Py_LIMITED_API, PyPy)));

    #[inline]
    pub unsafe fn PyObject_CallMethodNoArgs(obj: *mut crate::PyObject, name: *mut crate::PyObject) -> *mut crate::PyObject {
        crate::PyObject_CallMethodObjArgs(obj, name, core::ptr::null_mut::<crate::PyObject>())
    }
);