💥 remove deprecated export (#1125)

This commit is contained in:
Ju4tCode
2022-08-08 21:07:36 +08:00
committed by GitHub
parent 6583bc8c61
commit 1766d4da69
6 changed files with 3 additions and 79 deletions

View File

@ -12,7 +12,6 @@ from pydantic import BaseModel
from nonebot.matcher import Matcher
from .export import Export
from . import _plugins as plugins # FIXME: backport for nonebug
if TYPE_CHECKING:
@ -46,8 +45,6 @@ class Plugin:
"""点分割模块路径"""
manager: "PluginManager"
"""导入该插件的插件管理器"""
export: Export = field(default_factory=Export)
"""**Deprecated:** 插件内定义的导出内容"""
matcher: Set[Type[Matcher]] = field(default_factory=set)
"""插件内定义的 `Matcher`"""
parent_plugin: Optional["Plugin"] = None