python: apply const method annotations to impls.

This commit is contained in:
Jacob Oursland
2025-04-16 20:29:19 -07:00
parent 605c094884
commit 5b81cd741a
69 changed files with 508 additions and 515 deletions

View File

@@ -108,7 +108,7 @@ void Array3DPy::setDepth(Py::Long arg)
getArray3DPtr()->setDepth(arg);
}
PyObject* Array3DPy::getRows(PyObject* args)
PyObject* Array3DPy::getRows(PyObject* args) const
{
int depth = getArray3DPtr()->currentDepth();
if (!PyArg_ParseTuple(args, "|i", &depth)) {
@@ -118,7 +118,7 @@ PyObject* Array3DPy::getRows(PyObject* args)
return PyLong_FromLong(getArray3DPtr()->rows(depth));
}
PyObject* Array3DPy::getValue(PyObject* args)
PyObject* Array3DPy::getValue(PyObject* args) const
{
int depth;
int row;
@@ -138,7 +138,7 @@ PyObject* Array3DPy::getValue(PyObject* args)
return nullptr;
}
PyObject* Array3DPy::getDepthValue(PyObject* args)
PyObject* Array3DPy::getDepthValue(PyObject* args) const
{
int depth;
if (!PyArg_ParseTuple(args, "i", &depth)) {