Skip to content

Commit

Permalink
🔖 version 0.30.0
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Oct 22, 2023
1 parent a797d23 commit afe2a38
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/nonebot_plugin_alconna/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,16 @@
from .params import assign as assign
from .rule import alconna as alconna
from .uniseg import UniMsg as UniMsg
from .uniseg import RefNode as RefNode
from .uniseg import Segment as Segment
from .matcher import Command as Command
from .params import AlcResult as AlcResult
from .uniseg import Reference as Reference
from .argv import MessageArgv as MessageArgv
from .params import AlcMatches as AlcMatches
from .params import AlconnaArg as AlconnaArg
from .params import match_path as match_path
from .uniseg import CustomNode as CustomNode
from .uniseg import UniMessage as UniMessage
from .extension import Extension as Extension
from .extension import Interface as Interface
Expand All @@ -86,7 +89,7 @@
from .consts import ALCONNA_EXEC_RESULT as ALCONNA_EXEC_RESULT
from .extension import add_global_extension as add_global_extension

__version__ = "0.29.0"
__version__ = "0.30.0"

__plugin_meta__ = PluginMetadata(
name="Alconna 插件",
Expand Down
5 changes: 4 additions & 1 deletion src/nonebot_plugin_alconna/uniseg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,18 @@
from .segment import Voice as Voice
from .const import log # noqa: F401
from .params import UniMsg as UniMsg
from .segment import RefNode as RefNode
from .segment import Segment as Segment
from .segment import Reference as Reference
from .message import UniMessage as UniMessage
from .segment import CustomNode as CustomNode
from .export import SerializeFailed as SerializeFailed
from .fallback import FallbackMessage as FallbackMessage
from .fallback import FallbackSegment as FallbackSegment
from .params import UniversalMessage as UniversalMessage
from .params import UniversalSegment as UniversalSegment

__version__ = "0.29.0"
__version__ = "0.30.0"

__plugin_meta__ = PluginMetadata(
name="Universal Segment 插件",
Expand Down
3 changes: 2 additions & 1 deletion src/nonebot_plugin_alconna/uniseg/segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ def solve(self, seg: MessageSegment) -> Optional[TS]:
class Segment:
"""基类标注"""

origin: MessageSegment = field(init=False, repr=False, compare=False)
if TYPE_CHECKING:
origin: MessageSegment = field(init=False, repr=False, compare=False)

def __str__(self):
return f"[{self.__class__.__name__.lower()}]"
Expand Down

0 comments on commit afe2a38

Please sign in to comment.