Mark attribute 'Type' deprecated, use 'TypeId' now
This commit is contained in:
@@ -69,6 +69,13 @@ PyObject* BaseClassPy::getAllDerivedFrom(PyObject *args)
|
||||
}
|
||||
|
||||
Py::String BaseClassPy::getType(void) const
|
||||
{
|
||||
PyErr_SetString(PyExc_DeprecationWarning, "Use 'TypeId' instead");
|
||||
PyErr_Print();
|
||||
return Py::String(std::string(getBaseClassPtr()->getTypeId().getName()));
|
||||
}
|
||||
|
||||
Py::String BaseClassPy::getTypeId(void) const
|
||||
{
|
||||
return Py::String(std::string(getBaseClassPtr()->getTypeId().getName()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user