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

@@ -36,7 +36,7 @@ std::string BaseClassPy::representation() const
}
PyObject* BaseClassPy::isDerivedFrom(PyObject* args)
PyObject* BaseClassPy::isDerivedFrom(PyObject* args) const
{
char* name {};
if (!PyArg_ParseTuple(args, "s", &name)) {
@@ -48,7 +48,7 @@ PyObject* BaseClassPy::isDerivedFrom(PyObject* args)
return PyBool_FromLong(valid ? 1 : 0);
}
PyObject* BaseClassPy::getAllDerivedFrom(PyObject* args)
PyObject* BaseClassPy::getAllDerivedFrom(PyObject* args) const
{
if (!PyArg_ParseTuple(args, "")) {
return nullptr;