Fix template bug resulting in empty __post_init__ methods

This commit is contained in:
Nat Noordanus
2020-10-19 18:22:33 +02:00
committed by Basileus
parent fc90653ab1
commit bb646fe26f
4 changed files with 5 additions and 169 deletions

View File

@@ -312,6 +312,10 @@ class MessageCompiler(ProtoContentBase):
if f.deprecated:
yield f.py_name
@property
def has_deprecated_fields(self) -> bool:
return any(self.deprecated_fields)
def is_map(
proto_field_obj: FieldDescriptorProto, parent_message: DescriptorProto