summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrios <riosm@dickinson.edu>2021-03-25 16:48:03 -0400
committermrios <riosm@dickinson.edu>2021-03-25 16:48:03 -0400
commit6eacf152e1e41e92d6a6e8b4d3ccfa01a8e275ef (patch)
tree6823801b1807cb35a665a726d20aecbc64294156
parent74e5bff6e54cae165c088cd38104071469eb3d84 (diff)
downloadnumpy-6eacf152e1e41e92d6a6e8b4d3ccfa01a8e275ef.tar.gz
BUG: Changed METH_VARARGS to METH_NOARGS
-rw-r--r--numpy/core/src/multiarray/nditer_pywrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/nditer_pywrap.c b/numpy/core/src/multiarray/nditer_pywrap.c
index e0ec9d5cf..5ac0f8442 100644
--- a/numpy/core/src/multiarray/nditer_pywrap.c
+++ b/numpy/core/src/multiarray/nditer_pywrap.c
@@ -2369,7 +2369,7 @@ static PyMethodDef npyiter_methods[] = {
{"__exit__", (PyCFunction)npyiter_exit,
METH_VARARGS, NULL},
{"close", (PyCFunction)npyiter_close,
- METH_VARARGS, NULL},
+ METH_NOARGS, NULL},
{NULL, NULL, 0, NULL},
};