Base: Use constant for Type::BadType instead Type::badType()

This commit is contained in:
Benjamin Nauck
2025-02-13 20:24:40 +01:00
parent 8e3a4483a4
commit 6bee97a5d2
5 changed files with 15 additions and 22 deletions

View File

@@ -76,8 +76,7 @@ PyObject* TypePy::getBadType(PyObject* args)
return nullptr;
}
Base::Type type = Base::Type::badType();
return new TypePy(new Base::Type(type));
return new TypePy(new Base::Type(Base::Type::BadType));
}
PyObject* TypePy::getParent(PyObject* args)