mirror of
https://github.com/fastapi/sqlmodel.git
synced 2025-08-15 10:11:34 +08:00
🎨 Update docs format and references with pre-commit and Ruff (#667)
This commit is contained in:

committed by
GitHub

parent
7c5894ee75
commit
56f43904c1
@ -136,7 +136,6 @@ def update_hero(
|
||||
|
||||
@app.delete("/heroes/{hero_id}")
|
||||
def delete_hero(*, session: Session = Depends(get_session), hero_id: int):
|
||||
|
||||
hero = session.get(Hero, hero_id)
|
||||
if not hero:
|
||||
raise HTTPException(status_code=404, detail="Hero not found")
|
||||
|
Reference in New Issue
Block a user