Skip to content

Commit e063fc4

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

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

api/accent_marker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from pydantic import BaseModel, Field
1515

1616
from api.dependencies import get_http_client
17-
from api.furigana_marker import Request, SingleWordResultObject, mark_furigana_service
17+
from api.furigana_marker import FastAPIInternalRequest, SingleWordResultObject, mark_furigana_service
1818

1919
logger = logging.getLogger(__name__)
2020

@@ -255,7 +255,7 @@ async def get_ojad_result(
255255

256256
@router.post("/MarkAccent/", tags=["MarkAccent"], response_model=Response)
257257
async def mark_accent(
258-
request: Request, client: httpx.AsyncClient = Depends(get_http_client)
258+
request: FastAPIInternalRequest, client: httpx.AsyncClient = Depends(get_http_client)
259259
) -> dict[str, Any]:
260260
"""Receive POST request, return a JSON response"""
261261
logger.info(f"[API] Received Request Text: {request.text}")

api/furigana_marker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
An API that mark furigana of given query text
33
"""
4-
4+
import json
55
import os
66
from typing import Any
77

@@ -178,7 +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-
181+
182182
except Exception as e:
183183
return Response(
184184
status=500,

0 commit comments

Comments
 (0)