Issue 24017: Drop getawaitablefunc and friends in favor of unaryfunc.
diff --git a/Include/object.h b/Include/object.h
index e173438..8afcbe9 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -173,9 +173,6 @@
typedef int(*ssizeobjargproc)(PyObject *, Py_ssize_t, PyObject *);
typedef int(*ssizessizeobjargproc)(PyObject *, Py_ssize_t, Py_ssize_t, PyObject *);
typedef int(*objobjargproc)(PyObject *, PyObject *, PyObject *);
-typedef PyObject *(*getawaitablefunc) (PyObject *);
-typedef PyObject *(*getaiterfunc) (PyObject *);
-typedef PyObject *(*aiternextfunc) (PyObject *);
#ifndef Py_LIMITED_API
/* buffer interface */
@@ -305,9 +302,9 @@
} PyMappingMethods;
typedef struct {
- getawaitablefunc am_await;
- getaiterfunc am_aiter;
- aiternextfunc am_anext;
+ unaryfunc am_await;
+ unaryfunc am_aiter;
+ unaryfunc am_anext;
} PyAsyncMethods;
typedef struct {