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

Commit 6c94a1d

Browse files
committed
Remove redondant code
1 parent 6ca8b6a commit 6c94a1d

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/betterproto2_compiler/plugin/models.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -410,13 +410,6 @@ def py_type(self) -> str:
410410
def annotation(self) -> str:
411411
py_type = self.py_type
412412

413-
# Replace by the wrapping type if needed
414-
if self.proto_obj.type == FieldDescriptorProtoType.TYPE_MESSAGE:
415-
type_package, type_name = parse_source_type_name(self.proto_obj.type_name, self.output_file.parent_request)
416-
417-
if wrapped_type := WRAPPED_TYPES.get((type_package, type_name)):
418-
py_type = wrapped_type
419-
420413
if self.use_builtins:
421414
py_type = f"builtins.{py_type}"
422415
if self.repeated:

0 commit comments

Comments
 (0)