Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Commit 6558cc6

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)