sql_app/schema: fix type error
Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
parent
987087704a
commit
64edc98a76
@ -1,4 +1,4 @@
|
||||
from typing import Optional
|
||||
from typing import Any, List, Optional
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
@ -31,7 +31,7 @@ class UserCreate(UserBase):
|
||||
class User(UserBase):
|
||||
id: int
|
||||
is_active: bool
|
||||
authorized_devices: list[IotEntity] = []
|
||||
authorized_devices: List[IotEntity] = []
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
|
Loading…
Reference in New Issue
Block a user