mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
🏷️ 添加一些 TypeAlias
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
from typing import Literal
|
from typing import Literal, TypeAlias
|
||||||
|
|
||||||
Number = float | int
|
Number: TypeAlias = float | int
|
||||||
GameType = Literal['IO', 'TOP', 'TOS']
|
GameType: TypeAlias = Literal['IO', 'TOP', 'TOS']
|
||||||
BaseCommandType = Literal['bind', 'query']
|
BaseCommandType: TypeAlias = Literal['bind', 'query']
|
||||||
TETRIOCommandType = BaseCommandType | Literal['rank', 'config', 'list', 'record']
|
TETRIOCommandType: TypeAlias = BaseCommandType | Literal['rank', 'config', 'list', 'record']
|
||||||
AllCommandType = BaseCommandType | TETRIOCommandType
|
AllCommandType: TypeAlias = BaseCommandType | TETRIOCommandType
|
||||||
Me = Literal[
|
Me: TypeAlias = Literal[
|
||||||
'我',
|
'我',
|
||||||
'自己',
|
'自己',
|
||||||
'我等',
|
'我等',
|
||||||
|
|||||||
Reference in New Issue
Block a user