summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_warnings.h
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2023-05-26 11:23:29 (GMT)
committerGitHub <noreply@github.com>2023-05-26 11:23:29 (GMT)
commit7fc542c88dc8a09d71006a6240943407b83229d0 (patch)
tree7a07b24e2fec790d9d4fa7bf7eef3779f46cdcf3 /Include/internal/pycore_warnings.h
parent46857d0b2a2ac6aeb6dcce2bf2c92ddf4abe7496 (diff)
downloadcpython-7fc542c88dc8a09d71006a6240943407b83229d0.zip
cpython-7fc542c88dc8a09d71006a6240943407b83229d0.tar.gz
cpython-7fc542c88dc8a09d71006a6240943407b83229d0.tar.bz2
GH-89091: raise `RuntimeWarning` for unawaited async generator methods (#104611)
Diffstat (limited to 'Include/internal/pycore_warnings.h')
-rw-r--r--Include/internal/pycore_warnings.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/internal/pycore_warnings.h b/Include/internal/pycore_warnings.h
index efb4f1c..452d6b9 100644
--- a/Include/internal/pycore_warnings.h
+++ b/Include/internal/pycore_warnings.h
@@ -22,6 +22,7 @@ extern int _PyWarnings_InitState(PyInterpreterState *interp);
PyAPI_FUNC(PyObject*) _PyWarnings_Init(void);
extern void _PyErr_WarnUnawaitedCoroutine(PyObject *coro);
+extern void _PyErr_WarnUnawaitedAgenMethod(PyAsyncGenObject *agen, PyObject *method);
#ifdef __cplusplus
}