Skip to content

Commit 3a41992

Browse files
committed
Fix: use builtin annotation prefix
1 parent 501cd16 commit 3a41992

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/betterproto/plugin/models.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -539,10 +539,10 @@ def annotation(self) -> str:
539539
if self.use_builtins:
540540
py_type = f"builtins.{py_type}"
541541
if self.repeated:
542-
return f"List[{self.py_type}]"
542+
return f"List[{py_type}]"
543543
if self.optional:
544-
return f"Optional[{self.py_type}]"
545-
return self.py_type
544+
return f"Optional[{py_type}]"
545+
return py_type
546546

547547

548548
@dataclass

0 commit comments

Comments
 (0)