根据传入参数和模板生成消息对象
( # pyright: ignore[reportIncompatibleMethodOverride]
self, *args, **kwargs
)
| 76 | return spec |
| 77 | |
| 78 | def format( # pyright: ignore[reportIncompatibleMethodOverride] |
| 79 | self, *args, **kwargs |
| 80 | ) -> TF: |
| 81 | """根据传入参数和模板生成消息对象""" |
| 82 | return self._format(args, kwargs) |
| 83 | |
| 84 | def format_map(self, mapping: Mapping[str, Any]) -> TF: |
| 85 | """根据传入字典和模板生成消息对象, 在传入字段名不是有效标识符时有用""" |