sql_app/schema: fix type error

Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
HeshamTB 2022-04-03 14:51:26 +03:00
parent 987087704a
commit 64edc98a76

View File

@ -1,4 +1,4 @@
from typing import Optional from typing import Any, List, Optional
from pydantic import BaseModel from pydantic import BaseModel
@ -31,7 +31,7 @@ class UserCreate(UserBase):
class User(UserBase): class User(UserBase):
id: int id: int
is_active: bool is_active: bool
authorized_devices: list[IotEntity] = [] authorized_devices: List[IotEntity] = []
class Config: class Config:
orm_mode = True orm_mode = True