Skip to content

Commit 6558cc6

Browse files
committed
clarify comment
1 parent 5504d0a commit 6558cc6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

google/api_core/path_template.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@ def transcode(http_options, message=None, **request_kwargs):
301301
# gapic-generator-python appends an underscore to field names
302302
# that collide with python keywords. See related issue
303303
# https://github.com/googleapis/python-api-core/issues/227
304+
# Make sure that when the fields are REST encoded, the
305+
# Python-specific trailing underscore is removed before going on the wire.
304306
# `leftovers` can either be a dict or protobuf message.
305307
# When `leftovers` is a dict, the `_` suffix in each key
306308
# is stripped away as it is not possible to natively define a field

0 commit comments

Comments
 (0)