Skip to content
Prev Previous commit
Next Next commit
docs(genobject): note dealloc dependency in asend finalizer
  • Loading branch information
ashm-dev committed Sep 28, 2026
commit 12245614ed83cb01f5a0a94bc6f71dd2ea53a442
1 change: 1 addition & 0 deletions Objects/genobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -2186,6 +2186,7 @@ static void
async_gen_asend_finalize(PyObject *self)
{
PyAsyncGenASend *ags = _PyAsyncGenASend_CAST(self);
// async_gen_asend_dealloc() calls this only in the INIT state.
if (ags->ags_state == AWAITABLE_STATE_INIT) {
_PyErr_WarnUnawaitedAgenMethod(ags->ags_gen, &_Py_ID(asend));
}
Expand Down
Loading