Remove FieldCompiler.mutable (#628)
This commit is contained in:
parent
849c12fe88
commit
a99be78fe4
@ -484,13 +484,6 @@ class FieldCompiler(MessageCompiler):
|
||||
def optional(self) -> bool:
|
||||
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
|
||||
def field_type(self) -> str:
|
||||
"""String representation of proto field type."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user