appease mypy too

This commit is contained in:
Ian McEwen
2024-11-15 11:55:25 -07:00
parent 0b086d10f8
commit 4c7ac60be6

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