| 188 | } |
| 189 | |
| 190 | static PyObject *Vector_new(PyTypeObject *type, PyObject *args, PyObject *kwds) |
| 191 | { |
| 192 | if (UNLIKELY(kwds && PyDict_GET_SIZE(kwds))) { |
| 193 | PyErr_SetString(PyExc_TypeError, |
| 194 | "Vector(): " |
| 195 | "takes no keyword args"); |
| 196 | return nullptr; |
| 197 | } |
| 198 | PyObject *const *args_array = &PyTuple_GET_ITEM(args, 0); |
| 199 | const size_t args_array_num = PyTuple_GET_SIZE(args); |
| 200 | return Vector_vectorcall( |
| 201 | reinterpret_cast<PyObject *>(type), args_array, args_array_num, nullptr); |
| 202 | } |
| 203 | |
| 204 | /** \} */ |
| 205 |
nothing calls this directly
no test coverage detected