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

Commit 9a23d3f

Browse files
committed
Fix bug
1 parent 3cd3589 commit 9a23d3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/betterproto2_compiler/plugin/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ def get_field_string(self) -> str:
477477
f"betterproto2.{self.proto_v_type}))"
478478
)
479479
if self.py_name in dir(builtins):
480-
self.parent.builtins_types.add(self.py_name)
480+
self.message.builtins_types.add(self.py_name)
481481
return f'{self.py_name}: "{self.annotation}" = {betterproto_field_type}'
482482

483483
@property

0 commit comments

Comments
 (0)