Formatting everything with black

This commit is contained in:
Ian Roddis committed 2026-06-22 14:56:51 -03:00
1 parent 42a11c0dc6
commit a3539beda9
20 files changed
+173 -18

No files matched your search

+9 -3
View File
@@ -53,7 +53,9 @@ async def get_user(
):
user = await user_crud.get(db, user_id)
if user is None:
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="User not found")
raise HTTPException(
status_code=status.HTTP_404_NOT_FOUND, detail="User not found"
)
return user
@@ -66,7 +68,9 @@ async def update_user(
):
user = await user_crud.get(db, user_id)
if user is None:
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="User not found")
raise HTTPException(
status_code=status.HTTP_404_NOT_FOUND, detail="User not found"
)
return await user_crud.update(db, user, payload.model_dump(exclude_unset=True))
@@ -78,5 +82,7 @@ async def delete_user(
):
user = await user_crud.get(db, user_id)
if user is None:
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail="User not found")
raise HTTPException(
status_code=status.HTTP_404_NOT_FOUND, detail="User not found"
)
await user_crud.delete(db, user)