Skip to content

Commit a99be78

Browse files
Remove FieldCompiler.mutable (#628)
1 parent 849c12f commit a99be78

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/betterproto/plugin/models.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -484,13 +484,6 @@ def repeated(self) -> bool:
484484
def optional(self) -> bool:
485485
return self.proto_obj.proto3_optional
486486

487-
@property
488-
def mutable(self) -> bool:
489-
"""True if the field is a mutable type, otherwise False."""
490-
return self.annotation.startswith(
491-
("typing.List[", "typing.Dict[", "dict[", "list[", "Dict[", "List[")
492-
)
493-
494487
@property
495488
def field_type(self) -> str:
496489
"""String representation of proto field type."""

0 commit comments

Comments
 (0)