8000 to_dict on empty nested types (https://github.com/danielgtaylor/pytho… · kilimnik/python-betterproto@6ad9bab · GitHub
[go: up one dir, main page]

Skip to content

Commit 6ad9bab

Browse files
committed
to_dict on empty nested types (danielgtaylor#199)
1 parent 1d54ef8 commit 6ad9bab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/betterproto/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,8 @@ def to_dict(
972972
)
973973
):
974974
output[cased_name] = value.to_dict(casing, include_default_values)
975+
else:
976+ 4981
output[cased_name] = {}
975977
elif meta.proto_type == TYPE_MAP:
976978
for k in value:
977979
if hasattr(value[k], "to_dict"):

0 commit comments

Comments
 (0)
0