python: apply const method annotations to impls.

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

View File

@@ -371,7 +371,7 @@ void LinkViewPy::setVisibilities(Py::Object value) {
linked->setElementVisible(i,i>=(int)vis.size()||vis[i]);
}
PyObject* LinkViewPy::getChildren(PyObject *args) {
PyObject* LinkViewPy::getChildren(PyObject *args) const {
if (!PyArg_ParseTuple(args, ""))
return nullptr;
auto children = getLinkViewPtr()->getChildren();
@@ -395,4 +395,3 @@ void LinkViewPy::setCount(Py::Long count) {
throw Py::RuntimeError(e.what());
}
}