Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit 35ed922

Browse files
Remove useless constructor (#74)
1 parent 0f0a5cc commit 35ed922

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/betterproto2_compiler/plugin/models.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,7 @@ def optional(self) -> bool:
353353

354354
@property
355355
def field_type(self) -> FieldType:
356-
# TODO it should be possible to remove constructor
357-
return FieldType(self.proto_obj.type)
356+
return self.proto_obj.type
358357

359358
@property
360359
def packed(self) -> bool:

0 commit comments

Comments
 (0)