| 667 | |
| 668 | |
| 669 | static PyObject * |
| 670 | arrayflags_new(PyTypeObject *NPY_UNUSED(self), PyObject *args, PyObject *NPY_UNUSED(kwds)) |
| 671 | { |
| 672 | PyObject *arg=NULL; |
| 673 | if (!PyArg_UnpackTuple(args, "flagsobj", 0, 1, &arg)) { |
| 674 | return NULL; |
| 675 | } |
| 676 | if ((arg != NULL) && PyArray_Check(arg)) { |
| 677 | return PyArray_NewFlagsObject(arg); |
| 678 | } |
| 679 | else { |
| 680 | return PyArray_NewFlagsObject(NULL); |
| 681 | } |
| 682 | } |
| 683 | |
| 684 | NPY_NO_EXPORT PyTypeObject PyArrayFlags_Type = { |
| 685 | PyVarObject_HEAD_INIT(NULL, 0) |
nothing calls this directly
no test coverage detected