From e221bea9fe07e69d1a366c7446deb190b425acd9 Mon Sep 17 00:00:00 2001 From: Kaiqi Date: Tue, 11 Jun 2024 12:35:09 -0400 Subject: [PATCH] Add __firstlineno__ to _RESERVED_ATTRIBUTE_NAMES (#324) --- apitools/base/protorpclite/messages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apitools/base/protorpclite/messages.py b/apitools/base/protorpclite/messages.py index 859c5fb..1dcf80a 100644 --- a/apitools/base/protorpclite/messages.py +++ b/apitools/base/protorpclite/messages.py @@ -143,7 +143,7 @@ def __str__(self): # Attributes that are reserved by a class definition that # may not be used by either Enum or Message class definitions. _RESERVED_ATTRIBUTE_NAMES = frozenset( - ['__module__', '__doc__', '__qualname__', '__static_attributes__']) + ['__module__', '__doc__', '__qualname__', '__static_attributes__', '__firstlineno__']) _POST_INIT_FIELD_ATTRIBUTE_NAMES = frozenset( ['name',