diff --git a/src/betterproto2_compiler/plugin/models.py b/src/betterproto2_compiler/plugin/models.py index 4226bb46..7c55aecc 100644 --- a/src/betterproto2_compiler/plugin/models.py +++ b/src/betterproto2_compiler/plugin/models.py @@ -411,7 +411,7 @@ def annotation(self) -> str: if self.use_builtins: py_type = f"builtins.{py_type}" if self.repeated: - return f"list[{py_type}]" + return f"betterproto2.List[{py_type}]" if self.optional: return f"{py_type} | None" return py_type