From 45f991ed4c857d18f882242d6e9dcca58d69fc12 Mon Sep 17 00:00:00 2001 From: Adrien Vannson Date: Wed, 22 Jan 2025 15:03:13 +0100 Subject: [PATCH] Use a custom list type --- src/betterproto2_compiler/plugin/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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