MCPcopy
hub / github.com/danielgtaylor/python-betterproto / Request

Class Request

tests/test_features.py:270–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268def test_optional_flag():
269 @dataclass
270 class Request(betterproto.Message):
271 flag: Optional[bool] = betterproto.message_field(1, wraps=betterproto.TYPE_BOOL)
272
273 # Serialization of not passed vs. set vs. zero-value.
274 assert bytes(Request()) == b""

Callers 2

test_optional_flagFunction · 0.70

Calls

no outgoing calls

Tested by 2

test_optional_flagFunction · 0.56