mirror of
				https://github.com/nonebot/nonebot2.git
				synced 2025-10-30 22:46:40 +00:00 
			
		
		
		
	🔥 remove dependency override provider
This commit is contained in:
		| @@ -5,13 +5,12 @@ from typing import TYPE_CHECKING, List, Type, Optional | ||||
| from pydantic import BaseModel | ||||
| from pygtrie import StringTrie | ||||
|  | ||||
| from .message import Message | ||||
| from nonebot.typing import overrides | ||||
| from nonebot.utils import escape_tag | ||||
| from nonebot.exception import NoLogException | ||||
| from .exception import NoLogException | ||||
| from nonebot.adapters import Event as BaseEvent | ||||
|  | ||||
| from .message import Message | ||||
|  | ||||
| if TYPE_CHECKING: | ||||
|     from .bot import Bot | ||||
|  | ||||
|   | ||||
| @@ -1,9 +1,10 @@ | ||||
| from typing import Optional | ||||
|  | ||||
| from nonebot.exception import (AdapterException, ActionFailed as | ||||
|                                BaseActionFailed, NetworkError as | ||||
|                                BaseNetworkError, ApiNotAvailable as | ||||
|                                BaseApiNotAvailable) | ||||
| from nonebot.exception import AdapterException | ||||
| from nonebot.exception import ActionFailed as BaseActionFailed | ||||
| from nonebot.exception import NetworkError as BaseNetworkError | ||||
| from nonebot.exception import NoLogException as BaseNoLogException | ||||
| from nonebot.exception import ApiNotAvailable as BaseApiNotAvailable | ||||
|  | ||||
|  | ||||
| class CQHTTPAdapterException(AdapterException): | ||||
| @@ -12,6 +13,10 @@ class CQHTTPAdapterException(AdapterException): | ||||
|         super().__init__("cqhttp") | ||||
|  | ||||
|  | ||||
| class NoLogException(BaseNoLogException, CQHTTPAdapterException): | ||||
|     pass | ||||
|  | ||||
|  | ||||
| class ActionFailed(BaseActionFailed, CQHTTPAdapterException): | ||||
|     """ | ||||
|     :说明: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user