We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3099991 commit d72dfb4Copy full SHA for d72dfb4
proto/enums.py
@@ -73,6 +73,8 @@ def __new__(mcls, name, bases, attrs):
73
(
74
descriptor_pb2.EnumValueDescriptorProto(name=name, number=number)
75
# Minor hack to get all the enum variants out.
76
+ # Use the `_member_names` property to get only the enum members
77
+ # See https://github.com/googleapis/proto-plus-python/issues/490
78
for name, number in attrs.items()
79
if name in attrs._member_names and isinstance(number, int)
80
),
0 commit comments