删除说明前缀

This commit is contained in:
hemengyang
2022-01-12 18:16:05 +08:00
parent 0e11959347
commit 0099364838
25 changed files with 226 additions and 568 deletions

View File

@ -47,9 +47,7 @@ class MessageTemplate(Formatter, Generic[TF]):
def __init__(self, template, factory=str) -> None:
"""
:说明:
创建一个模板
创建一个模板
:参数:
@ -71,9 +69,7 @@ class MessageTemplate(Formatter, Generic[TF]):
def format(self, *args: Any, **kwargs: Any) -> TF:
"""
:说明:
根据模板和参数生成消息对象
根据模板和参数生成消息对象
"""
msg = self.factory()
if isinstance(self.template, str):