Skip to content

Commit 5cb6efe

Browse files
committed
amend TODO notes
1 parent b7bce44 commit 5cb6efe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Objects/iterobject.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,8 @@ anextawaitable_throw(PyObject *op, PyObject *args)
453453
static PyObject *
454454
anextawaitable_close(PyObject *op, PyObject *args)
455455
{
456-
// TODO(picnixz): what happens if we pass an argument to close()?
456+
// TODO(picnixz): investigate why close() is marked with METH_VARARGS
457+
// despite its docs indicating that it should be using METH_NOARGS.
457458
anextawaitableobject *obj = anextawaitableobject_CAST(op);
458459
return anextawaitable_proxy(obj, "close", args);
459460
}

0 commit comments

Comments
 (0)