Skip to content
Snippets Groups Projects
Commit d6d0e725 authored by David Bergström's avatar David Bergström
Browse files

Change name of method in UnitType, 'is' is a reserved word in Python

parent 86e6be46
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ void define_unittype(py::module & m)
{
py::class_<UnitType>(m, "UnitType")
.def(py::init<const sc2::UnitTypeID &, IDABot &>())
.def("is", &UnitType::is, "Check if UnitType is UnitTypeID")
.def("is_type_id", &UnitType::is, "Check if UnitType is UnitTypeID")
.def(py::self == py::self)
.def_property_readonly("name", &UnitType::getName)
.def_property_readonly("race", &UnitType::getRace)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment