Skip to content

Commit

Permalink
🏷️ 添加一些 TypeAlias
Browse files Browse the repository at this point in the history
  • Loading branch information
shoucandanghehe committed Oct 12, 2024
1 parent 5eb4771 commit 74eef41
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions nonebot_plugin_tetris_stats/utils/typing.py
Original file line number Diff line number Diff line change
@@ -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[
'我',
'自己',
'我等',
Expand Down

0 comments on commit 74eef41

Please sign in to comment.