From 7dda49751d06e2101d299e899d4184dd2a790de1 Mon Sep 17 00:00:00 2001 From: ssttkkl Date: Fri, 28 Oct 2022 14:32:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=89=AF=E9=9C=B2=E7=9A=84?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E4=B8=B2=E8=A1=A8=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mahjong_utils/models/furo.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mahjong_utils/models/furo.py b/mahjong_utils/models/furo.py index cfde986..e30a1d6 100644 --- a/mahjong_utils/models/furo.py +++ b/mahjong_utils/models/furo.py @@ -21,7 +21,8 @@ class Chi(Shuntsu, Furo): """ def __repr__(self): - return super(Shuntsu, self).__repr__() + return f"{self.tile.num}{self.tile.num + 1}{self.tile.num + 2}{self.tile.tile_type}" + @dataclass(frozen=True) class Pon(Kotsu, Furo): @@ -30,7 +31,7 @@ class Pon(Kotsu, Furo): """ def __repr__(self): - return super(Kotsu, self).__repr__() + return f"{self.tile.num}{self.tile.num}{self.tile.num}{self.tile.tile_type}" @dataclass(frozen=True)