From: Michael Tremer Date: Sun, 15 Jun 2025 15:22:14 +0000 (+0000) Subject: API: Set the return type for builds X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6eb4f5cadb88233f8acc2086476c3a0992f4d0f;p=pbs.git API: Set the return type for builds Signed-off-by: Michael Tremer --- diff --git a/src/api/builds.py b/src/api/builds.py index a22b57ae..dc05e028 100644 --- a/src/api/builds.py +++ b/src/api/builds.py @@ -24,8 +24,10 @@ import uuid from . import app from . import backend +from .. import builds + @app.get("/builds/{build_id}") -async def get(build_id: uuid.UUID): +async def get(build_id: uuid.UUID) -> builds.Build: build = await backend.builds.get_by_uuid(build_id) # Raise 404 if the build could not be found