🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

This commit is contained in:
pre-commit-ci[bot] 2025-11-22 09:11:43 +00:00
parent 13440986a1
commit e5f643c79a
1 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,9 @@ async def read_items(
if id:
item = data.get(id)
if item is None:
raise HTTPException(status_code=404, detail=f"Item with id '{id}' not found")
raise HTTPException(
status_code=404, detail=f"Item with id '{id}' not found"
)
else:
id, item = random.choice(list(data.items()))
return {"id": id, "name": item}