From 99adde52bd74b0aa603b92d3ace2dec81a5d7ff1 Mon Sep 17 00:00:00 2001 From: LDericher <40151420+ldericher@users.noreply.github.com> Date: Tue, 10 Aug 2021 03:26:35 +0200 Subject: [PATCH] Cleanup --- fftcg/card.py | 3 ++- fftcg/grid.py | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/fftcg/card.py b/fftcg/card.py index e2ce0dd..a38abf9 100644 --- a/fftcg/card.py +++ b/fftcg/card.py @@ -18,7 +18,8 @@ class Card: self.__opus = "0" self.__serial = "000" self.__rarity = "X" - self.__elements = None + self.__elements = [] + self.__name = None self.__text = None else: diff --git a/fftcg/grid.py b/fftcg/grid.py index 9e660a6..e8cc178 100644 --- a/fftcg/grid.py +++ b/fftcg/grid.py @@ -1,10 +1,12 @@ from PIL import Image +_Point = tuple[int, int] -class Grid(tuple[int, int]): - def __mul__(self, other): + +class Grid(_Point): + def __mul__(self, other: _Point) -> _Point: other = Grid(other) - return Grid((self.x * other.x, self.y * other.y)) + return self.x * other.x, self.y * other.y @property def x(self):