diff --git a/mahjong/hand_calculating/hand.py b/mahjong/hand_calculating/hand.py index d7918cd..f57c29e 100644 --- a/mahjong/hand_calculating/hand.py +++ b/mahjong/hand_calculating/hand.py @@ -192,7 +192,7 @@ def estimate_hand_value( config = config or HandConfig() - hand_yaku = [] + hand_yaku: list[Yaku] = [] scores_calculator = scores_calculator_factory() tiles_34 = TilesConverter.to_34_array(tiles) @@ -535,7 +535,7 @@ def estimate_hand_value( if not is_aotenjou: hand_yaku = yakuman_list else: - scores_calculator.aotenjou_filter_yaku(hand_yaku, config) # ty: ignore[unresolved-attribute] + scores_calculator.aotenjou_filter_yaku(hand_yaku, config) yakuman_list = [] # calculate han diff --git a/pyproject.toml b/pyproject.toml index 6617a3f..9d3158c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,7 +55,7 @@ lint = [ "ruff>=0.15.0,<0.16", ] typing = [ - "ty>=0.0.17", + "ty>=0.0.42", ] test = [ "pytest>=9.0.2,<10",