pokemon-quiz / utils.py
Yoon-gu Hwang
bug fix
6389c5c
raw
history blame
699 Bytes
from pydantic import BaseModel
from typing import Optional
initial_info = {"done" : True,
"score": 0, "count": 0,
"best_score": 0, "best_time": float("inf"),
"time": 0.0, "comment": "",
"history": [],
"candidates": ['1번', '2번', '3번', '4번']}
class Info(BaseModel):
done: bool = True
score: int = 0
count: int = 0
answer: Optional[str] = None
best_score: int = 0
best_time: float = float("inf")
time: float = 0.0
comment: str = ""
history: list = []
candidates: list = ['1번', '2번', '3번', '4번']
name: str = None
generations: list = []
types: list = []