Fix template bug resulting in empty __post_init__ methods
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user