Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeier committed Aug 30, 2024
1 parent c2f69cc commit 9d68c32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ragna/deploy/_api/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,9 @@ async def get_document(user: UserDependency, id: uuid.UUID) -> schemas.Document:
return document

@app.get("/documents/{id}/content")
async def get_document_content(user: UserDependency, id: uuid.UUID) -> bytes:
async def get_document_content(
user: UserDependency, id: uuid.UUID
) -> StreamingResponse:
with get_session() as session:
document, metadata = database.get_document(session, user=user, id=id)
core_document = document.to_core(metadata)
Expand Down

0 comments on commit 9d68c32

Please sign in to comment.