From c43c5740db099be19c5f6e52b3a917a631003411 Mon Sep 17 00:00:00 2001 From: Dov Shlachter Date: Thu, 17 Sep 2020 09:06:38 -0700 Subject: [PATCH] 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. --- gapic/utils/reserved_names.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gapic/utils/reserved_names.py b/gapic/utils/reserved_names.py index 866a86766..14958fc52 100644 --- a/gapic/utils/reserved_names.py +++ b/gapic/utils/reserved_names.py @@ -24,6 +24,6 @@ RESERVED_NAMES = frozenset( itertools.chain( keyword.kwlist, - set(dir(builtins)) - {"filter", "map"}, + set(dir(builtins)) - {"filter", "map", "id"}, ) )