From 27347f8249dc006b9d832811c2f92c56b8959ba0 Mon Sep 17 00:00:00 2001 From: WorldTeacher Date: Wed, 26 Nov 2025 14:14:21 +0100 Subject: [PATCH] formatting --- api_service.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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