]> git.ipfire.org Git - pbs.git/commitdiff
API: Set the return type for builds
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 15 Jun 2025 15:22:14 +0000 (15:22 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 15 Jun 2025 15:22:14 +0000 (15:22 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/api/builds.py

index a22b57aeaddd9852ca05aa27c3a6aa188c8a20b1..dc05e028600e9356ba60c0c06d37c0242b9fe1bd 100644 (file)
@@ -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