Skip to content

Commit 210cdb3

Browse files
authored
fix: 'id' should not be a reserved name (#602)
A number of python builtins collide with flattened fields from certain API methods. More common names, especially ones that conflict with builtins that aren't used by the surface, are explicitly allowed.
1 parent 57b2318 commit 210cdb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gapic-generator/gapic/utils/reserved_names.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
RESERVED_NAMES = frozenset(
2525
itertools.chain(
2626
keyword.kwlist,
27-
set(dir(builtins)) - {"filter", "map"},
27+
set(dir(builtins)) - {"filter", "map", "id"},
2828
)
2929
)

0 commit comments

Comments
 (0)