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,5 @@
# ruff: noqa: F401
from __future__ import annotations
from . import (
beatmapset_update,

View File

@@ -1,5 +1,3 @@
from __future__ import annotations
from datetime import datetime, timedelta
from app.dependencies.scheduler import get_scheduler

View File

@@ -1,7 +1,5 @@
"""缓存相关的 APScheduler 任务入口。"""
from __future__ import annotations
import asyncio
from datetime import UTC, timedelta
from typing import Final

View File

@@ -1,5 +1,3 @@
from __future__ import annotations
from datetime import timedelta
from app.database import RankHistory, UserStatistics

View File

@@ -1,5 +1,3 @@
from __future__ import annotations
from app.const import BANCHOBOT_ID
from app.database.statistics import UserStatistics
from app.database.user import User

View File

@@ -1,5 +1,3 @@
from __future__ import annotations
from datetime import UTC, timedelta
import json
from math import ceil

View File

@@ -1,5 +1,3 @@
from __future__ import annotations
from app.dependencies.database import with_db
from app.dependencies.scheduler import get_scheduler
from app.log import logger

View File

@@ -3,8 +3,6 @@ Scheduled Update Service
Periodically update the MaxMind GeoIP database
"""
from __future__ import annotations
from app.config import settings
from app.dependencies.geoip import get_geoip_helper
from app.dependencies.scheduler import get_scheduler

View File

@@ -1,5 +1,3 @@
from __future__ import annotations
import importlib
from app.log import logger

View File

@@ -1,5 +1,3 @@
from __future__ import annotations
from app.config import settings
from app.const import BANCHOBOT_ID
from app.database.statistics import UserStatistics

View File

@@ -1,5 +1,3 @@
from __future__ import annotations
import asyncio
import json

View File

@@ -1,5 +1,3 @@
from __future__ import annotations
from app.calculator import pre_fetch_and_calculate_pp
from app.database.score import Score, calculate_user_pp
from app.database.statistics import UserStatistics