исправлено: добавлены noqa: E402 для импортов после monkey-patch в bot.py

This commit is contained in:
deadzilla 2026-07-08 00:40:37 +05:00
parent 4b61909ebc
commit d20957ac5f

12
bot.py
View File

@ -11,13 +11,13 @@ from typing import TYPE_CHECKING
# discord.py 2.7.1 ещё не обновлена — применяем monkey-patch до импорта
asyncio.iscoroutinefunction = inspect.iscoroutinefunction # type: ignore[assignment]
import discord
from discord.ext import commands
from discord.ext.commands import CommandNotFound
from dotenv import load_dotenv
import discord # noqa: E402
from discord.ext import commands # noqa: E402
from discord.ext.commands import CommandNotFound # noqa: E402
from dotenv import load_dotenv # noqa: E402
from commands import ALL_COMMANDS
from utils.morning_runner import Scheduler
from commands import ALL_COMMANDS # noqa: E402
from utils.morning_runner import Scheduler # noqa: E402
if TYPE_CHECKING:
from utils.morning_runner import Scheduler as SchedulerType