Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def health_check():


@app.get("/sum")
def compute_sum(a: int = Query(...), b: int = Query(...)):
def compute_sum(a: int = Query(...), b: int = Query(...))-> dict[str, int]:
return {"result": a + b}


Expand All @@ -36,7 +36,6 @@ def format_profile(data):
"age": data.get("age"),
}


@app.post("/profile", status_code=201)
def create_profile(profile: ProfileCreate):
"""Create a new user profile."""
Expand Down