From ca2ada25764f8ff39d6d0cba598f846b734ef52d Mon Sep 17 00:00:00 2001 From: Apricot-S Date: Fri, 23 Jan 2026 21:47:31 +0900 Subject: [PATCH] feat: Remove deprecated `Yaku.english` and `Yaku.japanese` properties --- mahjong/hand_calculating/yaku.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/mahjong/hand_calculating/yaku.py b/mahjong/hand_calculating/yaku.py index 7544b1b..ea8d0f1 100644 --- a/mahjong/hand_calculating/yaku.py +++ b/mahjong/hand_calculating/yaku.py @@ -1,4 +1,3 @@ -import warnings from collections.abc import Collection, Sequence from typing import Optional @@ -38,13 +37,3 @@ def set_attributes(self) -> None: Set id, name, han related to the yaku """ raise NotImplementedError - - @property - def english(self) -> str: - warnings.warn("Use .name attribute instead of .english attribute", DeprecationWarning, stacklevel=2) - return self.name - - @property - def japanese(self) -> str: - warnings.warn("Use .name attribute instead of .japanese attribute", DeprecationWarning, stacklevel=2) - return self.name