Files
nonebot-plugin-tetris-stats/nonebot_plugin_tetris_stats/games/top/api/schemas/user.py
shoucandanghehe b0cff16dc6 🚨 修复 pyright 警告
改用 standard 标准(
2024-08-10 14:56:31 +08:00

18 lines
335 B
Python

from typing import Literal
from typing_extensions import override
from ....schemas import BaseUser
from ...constant import GAME_TYPE
class User(BaseUser[Literal['TOP']]):
platform: Literal['TOP'] = GAME_TYPE
user_name: str
@property
@override
def unique_identifier(self) -> str:
return self.user_name