refactor(project): make pyright & ruff happy

This commit is contained in:
MingxuanGame
2025-08-22 08:21:52 +00:00
parent 3b1d7a2234
commit 598fcc8b38
157 changed files with 2382 additions and 4590 deletions

View File

@@ -1,6 +1,7 @@
from __future__ import annotations
from datetime import UTC
from typing import cast
from apscheduler.schedulers.asyncio import AsyncIOScheduler
@@ -16,7 +17,7 @@ def get_scheduler() -> AsyncIOScheduler:
global scheduler
if scheduler is None:
init_scheduler()
return scheduler # pyright: ignore[reportReturnType]
return cast(AsyncIOScheduler, scheduler)
def start_scheduler():