Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix typos in proto/message.py #463

Merged
merged 1 commit into from
Jul 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions proto/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def to_json(
`always_print_fields_with_no_presence` instead. An option that
determines whether the default field values should be included in the results.
This value must match `always_print_fields_with_no_presence`,
if both arguments are explictly set.
if both arguments are explicitly set.
preserving_proto_field_name (Optional(bool)): An option that
determines whether field name representations preserve
proto case (snake_case) or use lowerCamelCase. Default is False.
Expand All @@ -497,7 +497,7 @@ def to_json(
always be serialized. Any field that supports presence is not affected by
this option (including singular message fields and oneof fields).
This value must match `including_default_value_fields`,
if both arguments are explictly set.
if both arguments are explicitly set.
Returns:
str: The json string representation of the protocol buffer.
"""
Expand Down Expand Up @@ -574,14 +574,14 @@ def to_dict(
`always_print_fields_with_no_presence` instead. An option that
determines whether the default field values should be included in the results.
This value must match `always_print_fields_with_no_presence`,
if both arguments are explictly set.
if both arguments are explicitly set.
float_precision (Optional(int)): If set, use this to specify float field valid digits.
Default is None.
always_print_fields_with_no_presence (Optional(bool)): If True, fields without
presence (implicit presence scalars, repeated fields, and map fields) will
always be serialized. Any field that supports presence is not affected by
this option (including singular message fields and oneof fields). This value
must match `including_default_value_fields`, if both arguments are explictly set.
must match `including_default_value_fields`, if both arguments are explicitly set.

Returns:
dict: A representation of the protocol buffer using pythonic data structures.
Expand Down