⬆️ pre-commit-ci自动升级 (#101)

* ⬆️ `pre-commit-ci`自动升级

updates:
- [github.com/pycqa/isort: 5.13.2 → 6.0.0](https://github.com/pycqa/isort/compare/5.13.2...6.0.0)
- [github.com/psf/black: 24.10.0 → 25.1.0](https://github.com/psf/black/compare/24.10.0...25.1.0)

* 🚨 `pre-commit-ci`修复格式错误

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
pre-commit-ci[bot] 2025-02-04 23:27:10 +08:00 committed by GitHub
parent c1302a91f0
commit 328ee58d90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 7 deletions

View File

@ -8,12 +8,12 @@ ci:
autoupdate_commit_msg: "⬆️ `pre-commit-ci`自动升级" autoupdate_commit_msg: "⬆️ `pre-commit-ci`自动升级"
repos: repos:
- repo: https://github.com/pycqa/isort - repo: https://github.com/pycqa/isort
rev: 5.13.2 rev: 6.0.0
hooks: hooks:
- id: isort - id: isort
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 24.10.0 rev: 25.1.0
hooks: hooks:
- id: black - id: black

View File

@ -153,7 +153,7 @@ class MessageSegment:
@staticmethod @staticmethod
def node( def node(
content_list: Union[List[Message], List[str], List[bytes]] content_list: Union[List[Message], List[str], List[bytes]],
) -> Message: ) -> Message:
msg_list: List[Message] = [] msg_list: List[Message] = []
for msg in content_list: for msg in content_list:

View File

@ -87,7 +87,7 @@ except: # noqa: E722
def with_session( def with_session(
func: Callable[Concatenate[Any, AsyncSession, P], Awaitable[R]] func: Callable[Concatenate[Any, AsyncSession, P], Awaitable[R]],
) -> Callable[Concatenate[Any, P], Awaitable[R]]: ) -> Callable[Concatenate[Any, P], Awaitable[R]]:
@wraps(func) @wraps(func)
async def wrapper(self, *args: P.args, **kwargs: P.kwargs): async def wrapper(self, *args: P.args, **kwargs: P.kwargs):

View File

@ -490,7 +490,7 @@ class CustomizeImage:
@staticmethod @staticmethod
def get_char_high_color( def get_char_high_color(
bg_color: Tuple[int, int, int] bg_color: Tuple[int, int, int],
) -> Tuple[int, int, int]: ) -> Tuple[int, int, int]:
r = 140 r = 140
d = 20 d = 20
@ -505,7 +505,7 @@ class CustomizeImage:
@staticmethod @staticmethod
def get_bg_detail_color( def get_bg_detail_color(
bg_color: Tuple[int, int, int] bg_color: Tuple[int, int, int],
) -> Tuple[int, int, int]: ) -> Tuple[int, int, int]:
r = 140 r = 140
if max(*bg_color) > 255 - r: if max(*bg_color) > 255 - r:
@ -519,7 +519,7 @@ class CustomizeImage:
@staticmethod @staticmethod
def get_highlight_color( def get_highlight_color(
color: Tuple[int, int, int] color: Tuple[int, int, int],
) -> Tuple[int, int, int]: ) -> Tuple[int, int, int]:
red_color = color[0] red_color = color[0]
green_color = color[1] green_color = color[1]