From 4eace26e77a2cb5c2c0110b7b330fc1b6f20dd91 Mon Sep 17 00:00:00 2001 From: Karako Date: Sun, 16 Oct 2022 12:13:15 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=20type=20hit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Karako --- plugins/genshin/gacha/gacha.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/genshin/gacha/gacha.py b/plugins/genshin/gacha/gacha.py index 3ebd81d9..86f38514 100644 --- a/plugins/genshin/gacha/gacha.py +++ b/plugins/genshin/gacha/gacha.py @@ -2,7 +2,7 @@ import asyncio import os import re from datetime import datetime -from typing import Optional, Union, Any, List +from typing import Any, List, Optional, Tuple, Union import ujson as json from bs4 import BeautifulSoup @@ -14,7 +14,7 @@ from core.base.redisdb import RedisDB from core.baseplugin import BasePlugin from core.plugin import Plugin, handler from core.template import TemplateService -from metadata.genshin import weapon_to_game_id, avatar_to_game_id, WEAPON_DATA, AVATAR_DATA +from metadata.genshin import AVATAR_DATA, WEAPON_DATA, avatar_to_game_id, weapon_to_game_id from metadata.shortname import weaponToName from modules.apihelper.hyperion import GachaInfo, GachaInfoObject from modules.gacha.banner import BannerType, GachaBanner @@ -127,7 +127,7 @@ class GachaHandle: return gacha_item @staticmethod - def de_title(title: str) -> Union[tuple[str, None], tuple[str, Any]]: + def de_title(title: str) -> Union[Tuple[str, None], Tuple[str, Any]]: title_html = BeautifulSoup(title, "lxml") re_color = re.search(r"", title, flags=0) if re_color is None: