diff --git a/gapic/utils/reserved_names.py b/gapic/utils/reserved_names.py index 14958fc52f..3d1e9b4459 100644 --- a/gapic/utils/reserved_names.py +++ b/gapic/utils/reserved_names.py @@ -17,13 +17,11 @@ import keyword -# The filter and map builtins are a historical artifact; -# they are not used in modern, idiomatic python, -# nor are they used in the gapic surface. -# They are too useful to reserve. +# The exceptions to builtins are frequent and useful. +# They are explicitly allowed message, module, and field names. RESERVED_NAMES = frozenset( itertools.chain( keyword.kwlist, - set(dir(builtins)) - {"filter", "map", "id"}, + set(dir(builtins)) - {"filter", "map", "id", "property"}, ) )