Skip to content

Commit 329d81d

Browse files
committed
refactor: simplify typing imports and remove unnecessary annotations in ingest.py
1 parent 83b82c7 commit 329d81d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/server/routers/ingest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""Ingest endpoint for the API."""
22

3-
from typing import Annotated, Union
3+
from typing import Union
44

5-
from fastapi import APIRouter, Body, HTTPException, Request, status
5+
from fastapi import APIRouter, HTTPException, Request, status
66
from fastapi.responses import FileResponse, JSONResponse, RedirectResponse
77
from prometheus_client import Counter
88

@@ -22,7 +22,7 @@
2222
@limiter.limit("10/minute")
2323
async def api_ingest(
2424
request: Request, # noqa: ARG001 (unused-function-argument) # pylint: disable=unused-argument
25-
ingest_request: Annotated[IngestRequest, Body(...)],
25+
ingest_request: IngestRequest,
2626
) -> JSONResponse:
2727
"""Ingest a Git repository and return processed content.
2828

0 commit comments

Comments
 (0)