Skip to content

Commit 5ed2bcb

Browse files
committed
chore: fix ruff problem
1 parent 2aa5e2e commit 5ed2bcb

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

api/furigana_marker.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import httpx
99
import yaml
10-
from fastapi import APIRouter, Depends, Request as FastAPIRequest
10+
from fastapi import APIRouter, Depends, Request as FastAPIInternalRequest
1111
from pydantic import BaseModel, Field
1212

1313
from api.dependencies import get_http_client
@@ -20,7 +20,7 @@
2020
]
2121

2222

23-
class FastAPIRequest(BaseModel):
23+
class QueryRequestModel(BaseModel):
2424
"""Class representing a request object"""
2525

2626
text: str = Field(description="The text to query")
@@ -162,7 +162,7 @@ async def mark_furigana_service(
162162
return Response(status=200, result=parsed_result).model_dump()
163163

164164
async def mark_furigana(
165-
request: FastAPIRequest,
165+
request: FastAPIInternalRequest,
166166
client: httpx.AsyncClient = Depends(get_http_client),
167167
) -> dict[str, Any]:
168168
"""
@@ -178,6 +178,7 @@ async def mark_furigana(
178178
query_text = body.get("text") or body.get("q") or ""
179179
elif isinstance(body, str):
180180
query_text = body
181+
181182
except Exception as e:
182183
return Response(
183184
status=500,

0 commit comments

Comments
 (0)