diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 709f4e2..194f3c6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ ci: autoupdate_commit_msg: ":arrow_up: auto update by pre-commit hooks" repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.6 + rev: v0.6.3 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/nonebot/adapters/console/adapter.py b/nonebot/adapters/console/adapter.py index ac56c33..2361c92 100644 --- a/nonebot/adapters/console/adapter.py +++ b/nonebot/adapters/console/adapter.py @@ -1,8 +1,8 @@ import sys import asyncio +from collections.abc import Awaitable from typing_extensions import override from typing import Any, Callable, Optional -from collections.abc import Awaitable from textual.color import Color from nonebot.drivers import Driver diff --git a/nonebot/adapters/console/event.py b/nonebot/adapters/console/event.py index e3942b3..a0685af 100644 --- a/nonebot/adapters/console/event.py +++ b/nonebot/adapters/console/event.py @@ -1,5 +1,5 @@ -from datetime import datetime from typing import Literal +from datetime import datetime from typing_extensions import override from nonechat.info import User diff --git a/nonebot/adapters/console/message.py b/nonebot/adapters/console/message.py index 4452090..f28d3e9 100644 --- a/nonebot/adapters/console/message.py +++ b/nonebot/adapters/console/message.py @@ -1,6 +1,6 @@ -from typing_extensions import Self, override from typing import Union, Optional from collections.abc import Iterable +from typing_extensions import Self, override from rich.style import Style from rich.emoji import EmojiVariant