Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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=
""
)
Callers
1
test_oneof_default_value_set_causes_writes_wire
Function · 0.85
Calls
2
parse
Method · 0.80
Foo
Class · 0.70
Tested by
no test coverage detected