修复模块导入问题

This commit is contained in:
洛水居室 2022-06-28 23:44:10 +08:00
parent 403b69fcc5
commit 9b5f16d0c4
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC
6 changed files with 8 additions and 8 deletions

View File

@ -6,8 +6,7 @@ from model.baseobject import BaseObject
class WeaponInfo(BaseObject):
"""
武器信息
"""武器信息
"""
def __init__(self, item_id: int = 0, name: str = "", level: int = 0, main_item: Optional[GameItem] = None,

View File

@ -7,10 +7,9 @@ import ujson
from aiohttp import ClientConnectorError
from genshin import InvalidCookies, GenshinException, TooManyRequests
from httpx import ConnectTimeout
from pyrogram.errors import Forbidden
from telegram import Update, ReplyKeyboardRemove
from telegram.constants import ParseMode
from telegram.error import BadRequest, TimedOut
from telegram.error import BadRequest, TimedOut, Forbidden
from telegram.ext import CallbackContext, ConversationHandler
from config import config
@ -47,6 +46,7 @@ async def send_user_notification(update: Update, _: CallbackContext, text: str):
def conversation_error_handler(func: Callable) -> Callable:
"""Conversation的错误处理修饰器
非常感谢 @Bibo-Joshi 提出的建议
"""

View File

@ -10,7 +10,8 @@ from telegram.helpers import escape_markdown
from config import config
from logger import Log
from manager import listener_plugins_class
from model.apihelper import Hyperion, ArtworkImage
from model.apihelper.base import ArtworkImage
from model.apihelper.hyperion import Hyperion
from plugins.base import BasePlugins
from plugins.errorhandler import conversation_error_handler
from service import BaseService

View File

@ -1,4 +1,4 @@
from model.apihelper import GachaInfo
from model.apihelper.gacha import GachaInfo
from service.cache import RedisCache
from service.repository import AsyncRepository

View File

@ -1,4 +1,4 @@
from model.apihelper import Hyperion
from model.apihelper.hyperion import Hyperion
from service.cache import RedisCache
from service.repository import AsyncRepository

View File

@ -1,7 +1,7 @@
import unittest
from unittest import IsolatedAsyncioTestCase
from model.apihelper import Hyperion
from model.apihelper.hyperion import Hyperion
class TestGame(IsolatedAsyncioTestCase):