MCPcopy Index your code
hub / github.com/danielgtaylor/python-betterproto / Empty

Class Empty

tests/test_streams.py:213–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211def test_message_len_empty_string():
212 @dataclass
213 class Empty(betterproto.Message):
214 string: str = betterproto.string_field(1, "group")
215 integer: int = betterproto.int32_field(2, "group")
216
217 empty = Empty().from_dict({"string": ""})
218 assert len(empty) == len(bytes(empty))

Calls

no outgoing calls

Tested by 3

test_empty_message_fieldFunction · 0.40