From 4ae71f46b7405360a2157fbe5c912715ae0a639c Mon Sep 17 00:00:00 2001 From: shreya-suvarna <148423774+shreya-suvarna@users.noreply.github.com> Date: Sat, 14 Feb 2026 15:07:43 +0530 Subject: [PATCH 1/3] fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 64ca216..ffd3909 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# FastAPI Worksohp +# FastAPI Workshop A tiny FastAPI application built for practicing open-source contributions. This project is designed for third-year CS students participating in From fc772197c546e7da11f780f45563d6de158d083a Mon Sep 17 00:00:00 2001 From: shreya-suvarna <148423774+shreya-suvarna@users.noreply.github.com> Date: Sat, 14 Feb 2026 15:12:27 +0530 Subject: [PATCH 2/3] issue 5 add return type hint --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index bf69788..53f8f2a 100644 --- a/app/main.py +++ b/app/main.py @@ -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: return {"result": a * b} From 93142292a04090efc95f0dabec837642f3c30ab1 Mon Sep 17 00:00:00 2001 From: shreya-suvarna <148423774+shreya-suvarna@users.noreply.github.com> Date: Sat, 14 Feb 2026 15:17:17 +0530 Subject: [PATCH 3/3] fix hint --- app/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index 53f8f2a..1c291c2 100644 --- a/app/main.py +++ b/app/main.py @@ -25,8 +25,8 @@ def health_check(): @app.get("/sum") -def compute_sum(a: int = Query(...), b: int = Query(...)) -> dict: - return {"result": a * b} +def compute_sum(a: int = Query(...), b: int = Query(...)) -> dict[str,int]: + return {"result": a * b} def format_profile(data):