diff --git a/api_service.py b/api_service.py index 6694efe..1ea1b83 100644 --- a/api_service.py +++ b/api_service.py @@ -4,17 +4,18 @@ This can run independently to support the PHP application. """ from __future__ import annotations + import asyncio -from contextlib import asynccontextmanager import json import logging import os import re import time -from typing import Any, TYPE_CHECKING +from contextlib import asynccontextmanager +from typing import TYPE_CHECKING, Any if TYPE_CHECKING: - from collections.abc import AsyncIterator, Callable, Awaitable + from collections.abc import AsyncIterator, Awaitable, Callable # Avoid importing heavy modules at top-level to keep `import api_service` lightweight from fastapi import FastAPI, Query, Request, Response