style(project): remove from __future__ import annotations

This commit is contained in:
MingxuanGame
2025-10-03 17:15:41 +00:00
parent 046f894407
commit dfd656f2fb
137 changed files with 94 additions and 362 deletions

View File

@@ -1,5 +1,3 @@
from __future__ import annotations
from typing import Annotated
from fastapi import Depends, Header

View File

@@ -1,5 +1,3 @@
from __future__ import annotations
from typing import Annotated
from app.service.beatmap_download_service import BeatmapDownloadService, download_service

View File

@@ -1,5 +1,3 @@
from __future__ import annotations
from typing import Annotated
from app.dependencies.database import Redis

View File

@@ -1,5 +1,3 @@
from __future__ import annotations
from collections.abc import AsyncIterator, Callable
from contextlib import asynccontextmanager
from contextvars import ContextVar

View File

@@ -1,5 +1,3 @@
from __future__ import annotations
from typing import Annotated
from app.config import settings

View File

@@ -2,8 +2,6 @@
GeoIP dependency for FastAPI
"""
from __future__ import annotations
from functools import lru_cache
import ipaddress
from typing import Annotated

View File

@@ -1,5 +1,3 @@
from __future__ import annotations
from typing import Any
from fastapi import Request

View File

@@ -1,5 +1,3 @@
from __future__ import annotations
from app.config import settings
from fastapi import Depends

View File

@@ -1,5 +1,3 @@
from __future__ import annotations
from datetime import UTC
from typing import cast

View File

@@ -1,5 +1,3 @@
from __future__ import annotations
from typing import Annotated, cast
from app.config import (

View File

@@ -1,5 +1,3 @@
from __future__ import annotations
from typing import Annotated
from app.auth import get_token_by_access_token

View File

@@ -1,5 +1,3 @@
from __future__ import annotations
from typing import Annotated
from app.models.model import UserAgentInfo as UserAgentInfoModel