From 74eef415065a2a2631ef65605a98ca2bd92551b1 Mon Sep 17 00:00:00 2001 From: shoucandanghehe Date: Sun, 13 Oct 2024 00:46:11 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=B7=EF=B8=8F=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=B8=80=E4=BA=9B=20TypeAlias?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nonebot_plugin_tetris_stats/utils/typing.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/nonebot_plugin_tetris_stats/utils/typing.py b/nonebot_plugin_tetris_stats/utils/typing.py index 06a8c2e3..b0abc4c7 100644 --- a/nonebot_plugin_tetris_stats/utils/typing.py +++ b/nonebot_plugin_tetris_stats/utils/typing.py @@ -1,11 +1,11 @@ -from typing import Literal +from typing import Literal, TypeAlias -Number = float | int -GameType = Literal['IO', 'TOP', 'TOS'] -BaseCommandType = Literal['bind', 'query'] -TETRIOCommandType = BaseCommandType | Literal['rank', 'config', 'list', 'record'] -AllCommandType = BaseCommandType | TETRIOCommandType -Me = Literal[ +Number: TypeAlias = float | int +GameType: TypeAlias = Literal['IO', 'TOP', 'TOS'] +BaseCommandType: TypeAlias = Literal['bind', 'query'] +TETRIOCommandType: TypeAlias = BaseCommandType | Literal['rank', 'config', 'list', 'record'] +AllCommandType: TypeAlias = BaseCommandType | TETRIOCommandType +Me: TypeAlias = Literal[ '我', '自己', '我等',