From c9a990c376ec93ae794b4d2227a0fe8194c7c587 Mon Sep 17 00:00:00 2001 From: Holt Skinner <13262395+holtskinner@users.noreply.github.com> Date: Fri, 1 Sep 2023 10:04:29 -0700 Subject: [PATCH] Update proto/message.py Co-authored-by: Anthonios Partheniou --- proto/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto/message.py b/proto/message.py index 413e8d1c..7232d42f 100644 --- a/proto/message.py +++ b/proto/message.py @@ -393,7 +393,7 @@ def to_json( proto case (snake_case) or use lowerCamelCase. Default is False. sort_keys (Optional(bool)): If True, then the output will be sorted by field names. Default is False. - indent (int): The JSON object will be pretty-printed with this indent level. + indent (Optional(int)): The JSON object will be pretty-printed with this indent level. An indent level of 0 or negative will only insert newlines. Pass None for the most compact representation without newlines. float_precision (Optional(int)): If set, use this to specify float field valid digits.