From 19943b64014a4f0a97ac694cbef6249f220c12ad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Bergstr=C3=B6m?= <davbe125@student.liu.se>
Date: Fri, 20 Jul 2018 10:37:23 +0200
Subject: [PATCH] Change __repr__ to match class it's representing

---
 python-api-src/lib_point.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python-api-src/lib_point.cpp b/python-api-src/lib_point.cpp
index 825500d22..b6a99086e 100644
--- a/python-api-src/lib_point.cpp
+++ b/python-api-src/lib_point.cpp
@@ -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) {
-- 
GitLab