Remove FieldCompiler.mutable (#628)

This commit is contained in:
Adrien 2024-10-24 14:09:10 +02:00 committed by GitHub
parent 849c12fe88
commit a99be78fe4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -484,13 +484,6 @@ class FieldCompiler(MessageCompiler):
def optional(self) -> bool: def optional(self) -> bool:
return self.proto_obj.proto3_optional return self.proto_obj.proto3_optional
@property
def mutable(self) -> bool:
"""True if the field is a mutable type, otherwise False."""
return self.annotation.startswith(
("typing.List[", "typing.Dict[", "dict[", "list[", "Dict[", "List[")
)
@property @property
def field_type(self) -> str: def field_type(self) -> str:
"""String representation of proto field type.""" """String representation of proto field type."""