From d6d0e72544c2be3d8148bc9ce7b280b9479b6eff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Bergstr=C3=B6m?= <davbe125@student.liu.se> Date: Tue, 3 Jul 2018 13:15:54 +0200 Subject: [PATCH] Change name of method in UnitType, 'is' is a reserved word in Python --- python-api-src/lib_unittype.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-api-src/lib_unittype.cpp b/python-api-src/lib_unittype.cpp index c3535b422..66851b6d6 100644 --- a/python-api-src/lib_unittype.cpp +++ b/python-api-src/lib_unittype.cpp @@ -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) -- GitLab