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

Function _round_trip_serialization

tests/test_features.py:511–512  ·  view source on GitHub ↗
(foo: Foo)

Source from the content-addressed store, hash-verified

509 qux: Empty = betterproto.message_field(3, group="group1")
510
511 def _round_trip_serialization(foo: Foo) -> Foo:
512 return Foo().parse(bytes(foo))
513
514 foo1 = Foo(bar=0)
515 foo2 = Foo(baz="")

Calls 2

parseMethod · 0.80
FooClass · 0.70

Tested by

no test coverage detected