From 3a42c13026531a5c7f5836b29c450fa58f3dc67e Mon Sep 17 00:00:00 2001 From: lvrossem Date: Tue, 28 Mar 2023 05:31:52 -0600 Subject: [PATCH] Use List from typing module instead of list --- src/schemas/users.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/schemas/users.py b/src/schemas/users.py index 6a020d3..3322c43 100644 --- a/src/schemas/users.py +++ b/src/schemas/users.py @@ -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