diff --git a/src/betterproto/plugin/models.py b/src/betterproto/plugin/models.py index c4b417bb..c0d42a6b 100644 --- a/src/betterproto/plugin/models.py +++ b/src/betterproto/plugin/models.py @@ -480,7 +480,7 @@ def __post_init__(self): parent=self, proto_obj=nested.field[0], # key ).py_type self.py_v_type = FieldCompiler( - parent=self, proto_obj=nested.field[1], # key + parent=self, proto_obj=nested.field[1], # value ).py_type # Get proto types self.proto_k_type = self.proto_obj.Type.Name(nested.field[0].type)