Skip to content

Commit

Permalink
🚨 pre-commit-ci修复格式错误
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Feb 4, 2025
1 parent ce98996 commit 74ad9f8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gsuid_core/segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def at(user: str) -> Message:

@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:
Expand Down
2 changes: 1 addition & 1 deletion gsuid_core/utils/database/base_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@


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):
Expand Down
6 changes: 3 additions & 3 deletions gsuid_core/utils/image/image_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ def get_char_color(bg_color: Tuple[int, int, int]) -> Tuple[int, int, int]:

@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
Expand All @@ -505,7 +505,7 @@ def get_char_high_color(

@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:
Expand All @@ -519,7 +519,7 @@ def get_bg_detail_color(

@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]
Expand Down

0 comments on commit 74ad9f8

Please sign in to comment.