Yoon-gu Hwang commited on
Commit
6389c5c
1 Parent(s): 819ed62
Files changed (1) hide show
  1. utils.py +2 -1
utils.py CHANGED
@@ -1,4 +1,5 @@
1
  from pydantic import BaseModel
 
2
 
3
  initial_info = {"done" : True,
4
  "score": 0, "count": 0,
@@ -11,7 +12,7 @@ class Info(BaseModel):
11
  done: bool = True
12
  score: int = 0
13
  count: int = 0
14
- answer: str = None
15
  best_score: int = 0
16
  best_time: float = float("inf")
17
  time: float = 0.0
 
1
  from pydantic import BaseModel
2
+ from typing import Optional
3
 
4
  initial_info = {"done" : True,
5
  "score": 0, "count": 0,
 
12
  done: bool = True
13
  score: int = 0
14
  count: int = 0
15
+ answer: Optional[str] = None
16
  best_score: int = 0
17
  best_time: float = float("inf")
18
  time: float = 0.0