appease mypy too

This commit is contained in:
Ian McEwen committed 2024-11-15 11:55:25 -07:00
1 parent 0b086d10f8
commit 4c7ac60be6
1 file changed
+1 -1
+1 -1
View File
@@ -678,5 +678,5 @@ def message_to_json(message: Message, multiline: bool=False) -> str:
try:
json = MessageToJson(message, always_print_fields_with_no_presence=True)
except TypeError:
json = MessageToJson(message, including_default_value_fields=True) # pylint: disable=E1123
json = MessageToJson(message, including_default_value_fields=True) # type: ignore[call-arg] # pylint: disable=E1123
return stripnl(json) if not multiline else json