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

This commit is contained in:
pre-commit-ci[bot] 2023-09-30 08:17:46 +00:00 committed by qwerdvd
parent 14d83c22e9
commit e6a02824ac
3 changed files with 6 additions and 3 deletions

View File

@ -168,7 +168,7 @@ class LocustRecordInfo(Struct):
start_h: Union[int, None] = None
# def __setitem__(self, key: str, value: Any) -> None:
# self.__dict__[key] = value
# self.__dict__[key] = value
class LocustRecord(Struct):

View File

@ -22,7 +22,9 @@ gacha_type_meta_data = {
async def get_new_gachalog_by_link(
uid: str, gacha_url: str, full_data: Dict, is_force: bool
):
full_data = msgspec.convert(full_data, type=Dict[str, List[SingleGachaLog]])
full_data = msgspec.convert(
full_data, type=Dict[str, List[SingleGachaLog]]
)
temp = []
for gacha_name in gacha_type_meta_data:
for gacha_type in gacha_type_meta_data[gacha_name]:

View File

@ -1,6 +1,7 @@
import math
from pathlib import Path
from typing import List, Union, Optional
from PIL import Image, ImageDraw
from gsuid_core.logger import logger
from gsuid_core.utils.error_reply import get_error
@ -296,7 +297,7 @@ async def draw_rogue_img(
else:
detail_h = 0
based_h = based_h + detail_h
# 获取查询者数据
if floor:
if floor > 7: