From 7dab73133795cccd4e01ff0a5fdb4d53ee81871e Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Sun, 3 Apr 2022 14:55:39 +0300 Subject: [PATCH] sql_app/schema: fix type error Signed-off-by: HeshamTB --- sql_app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql_app/main.py b/sql_app/main.py index 1f7f63b..f06c7ba 100644 --- a/sql_app/main.py +++ b/sql_app/main.py @@ -50,7 +50,7 @@ def create_item_for_user( return crud.create_user_item(db=db, item=item, user_id=user_id) -@app.get("/items/", response_model=list[schemas.IotEntity]) +@app.get("/items/", response_model=List[schemas.IotEntity]) def read_items(skip: int = 0, limit: int = 100, db: Session = Depends(get_db)): items = crud.get_items(db, skip=skip, limit=limit) return items