mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-27 18:45:05 +08:00
🐛 fix stringify when formatting
This commit is contained in:
parent
9518e3c568
commit
116f16b470
@ -103,3 +103,6 @@ class MessageFormatter(Formatter, Generic[TM]):
|
|||||||
|
|
||||||
return self.factory(functools.reduce(operator.add, results or
|
return self.factory(functools.reduce(operator.add, results or
|
||||||
[""])), auto_arg_index
|
[""])), auto_arg_index
|
||||||
|
|
||||||
|
def format_field(self, value: Any, format_spec: str) -> Any:
|
||||||
|
return super().format_field(value, format_spec) if format_spec else None
|
||||||
|
Loading…
Reference in New Issue
Block a user