From 5971c9dadd77af49020d573c20c99829e989e5fe Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 17 Apr 2020 16:35:12 +0200 Subject: [PATCH] Add missing repr to Wall --- lihzahrd/tiles/wall.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lihzahrd/tiles/wall.py b/lihzahrd/tiles/wall.py index 8cad3e9..b385161 100644 --- a/lihzahrd/tiles/wall.py +++ b/lihzahrd/tiles/wall.py @@ -10,3 +10,6 @@ class Wall: def __init__(self, type_: WallType, paint: typing.Optional[int] = None): self.type: WallType = type_ self.paint: typing.Optional[int] = paint + + def __repr__(self): + return f"Wall(type_={repr(self.type)}, paint={self.paint})"