Use List from typing module instead of list
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from pydantic import BaseModel
|
||||
from typing import List
|
||||
|
||||
|
||||
class User(BaseModel):
|
||||
@@ -6,8 +7,8 @@ class User(BaseModel):
|
||||
username: str
|
||||
hashed_password: str
|
||||
|
||||
high_scores: list[] = []
|
||||
course_progresses: list[] = []
|
||||
high_scores: List[int] = []
|
||||
course_progresses: List[int] = []
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
|
||||
Reference in New Issue
Block a user