From d6e7acf45f7c22e21c21515bc3ff5fd47280eb21 Mon Sep 17 00:00:00 2001 From: suyiiyii Date: Tue, 17 Dec 2024 11:17:49 +0800 Subject: [PATCH] :construction_worker: fix by ruff --- nonebot_bison/platform/bilibili/scheduler.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/nonebot_bison/platform/bilibili/scheduler.py b/nonebot_bison/platform/bilibili/scheduler.py index eeed9219..e9c2950b 100644 --- a/nonebot_bison/platform/bilibili/scheduler.py +++ b/nonebot_bison/platform/bilibili/scheduler.py @@ -1,21 +1,18 @@ +from collections.abc import Callable from datetime import datetime, timedelta import json import random -from collections.abc import Callable from typing import TYPE_CHECKING, ClassVar, TypeVar from typing_extensions import override +from httpx import AsyncClient, Response from nonebot import logger, require -from httpx import Response, AsyncClient from playwright.async_api import Cookie +from nonebot_bison.config import config from nonebot_bison.config.db_model import Cookie as CookieModel +from nonebot_bison.config.db_model import Target from nonebot_bison.utils import Site, http_client - -from ...config import config -from ...config.db_model import Target -from ...utils.site import CookieClientManager -from ...config.db_model import Cookie as CookieModel from nonebot_bison.utils.site import CookieClientManager if TYPE_CHECKING: