mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2026-05-10 18:57:56 +08:00
bug?
This commit is contained in:
@@ -12,6 +12,7 @@ from ..platform import platform_manager
|
||||
from ..plugin_config import plugin_config
|
||||
from ..types import Target, User
|
||||
from ..utils import Singleton
|
||||
from .utils import NoSuchSubscribeException, NoSuchUserException
|
||||
|
||||
supported_target_type = platform_manager.keys()
|
||||
|
||||
@@ -31,14 +32,6 @@ def get_config_path() -> str:
|
||||
return new_path
|
||||
|
||||
|
||||
class NoSuchUserException(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class NoSuchSubscribeException(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class SubscribeContent(TypedDict):
|
||||
target: str
|
||||
target_type: str
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from dataclasses import field
|
||||
# from pydantic.dataclasses import dataclass
|
||||
from dataclasses import dataclass, field
|
||||
from functools import reduce
|
||||
from io import BytesIO
|
||||
from typing import Optional, Union
|
||||
@@ -7,7 +8,6 @@ import httpx
|
||||
from nonebot.adapters.onebot.v11.message import Message, MessageSegment
|
||||
from nonebot.log import logger
|
||||
from PIL import Image
|
||||
from pydantic.dataclasses import dataclass
|
||||
|
||||
from .plugin_config import plugin_config
|
||||
from .utils import parse_text
|
||||
|
||||
Reference in New Issue
Block a user