mirror of
https://github.com/Genshin-bots/gsuid_core.git
synced 2025-05-07 20:45:57 +08:00
⬆️ 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:
parent
c1302a91f0
commit
328ee58d90
@ -8,12 +8,12 @@ ci:
|
||||
autoupdate_commit_msg: "⬆️ `pre-commit-ci`自动升级"
|
||||
repos:
|
||||
- repo: https://github.com/pycqa/isort
|
||||
rev: 5.13.2
|
||||
rev: 6.0.0
|
||||
hooks:
|
||||
- id: isort
|
||||
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 24.10.0
|
||||
rev: 25.1.0
|
||||
hooks:
|
||||
- id: black
|
||||
|
||||
|
@ -153,7 +153,7 @@ class MessageSegment:
|
||||
|
||||
@staticmethod
|
||||
def node(
|
||||
content_list: Union[List[Message], List[str], List[bytes]]
|
||||
content_list: Union[List[Message], List[str], List[bytes]],
|
||||
) -> Message:
|
||||
msg_list: List[Message] = []
|
||||
for msg in content_list:
|
||||
|
@ -87,7 +87,7 @@ except: # noqa: E722
|
||||
|
||||
|
||||
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]]:
|
||||
@wraps(func)
|
||||
async def wrapper(self, *args: P.args, **kwargs: P.kwargs):
|
||||
|
@ -490,7 +490,7 @@ class CustomizeImage:
|
||||
|
||||
@staticmethod
|
||||
def get_char_high_color(
|
||||
bg_color: Tuple[int, int, int]
|
||||
bg_color: Tuple[int, int, int],
|
||||
) -> Tuple[int, int, int]:
|
||||
r = 140
|
||||
d = 20
|
||||
@ -505,7 +505,7 @@ class CustomizeImage:
|
||||
|
||||
@staticmethod
|
||||
def get_bg_detail_color(
|
||||
bg_color: Tuple[int, int, int]
|
||||
bg_color: Tuple[int, int, int],
|
||||
) -> Tuple[int, int, int]:
|
||||
r = 140
|
||||
if max(*bg_color) > 255 - r:
|
||||
@ -519,7 +519,7 @@ class CustomizeImage:
|
||||
|
||||
@staticmethod
|
||||
def get_highlight_color(
|
||||
color: Tuple[int, int, int]
|
||||
color: Tuple[int, int, int],
|
||||
) -> Tuple[int, int, int]:
|
||||
red_color = color[0]
|
||||
green_color = color[1]
|
||||
|
Loading…
x
Reference in New Issue
Block a user