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

Change __repr__ to match class it's representing

parent af77350e
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ void define_point(py::module & m)
.def(py::self != py::self)
.def("__repr__",
[](const sc2::Point2DI & p) {
return "<Point2D: (" + std::to_string(p.x) + ", " + std::to_string(p.y) + ")>";
return "<Point2DI: (" + std::to_string(p.x) + ", " + std::to_string(p.y) + ")>";
})
.def("__str__",
[](const sc2::Point2DI & p) {
......
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