🐛 fix stringify when formatting

This commit is contained in:
yanyongyu 2021-08-28 19:39:54 +08:00
parent 9518e3c568
commit 116f16b470

View File

@ -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