| 56 | |
| 57 | @dataclass |
| 58 | class WithCollections(betterproto.Message): |
| 59 | test_list: List[str] = betterproto.string_field(1) |
| 60 | test_map: Dict[str, str] = betterproto.map_field( |
| 61 | 2, betterproto.TYPE_STRING, betterproto.TYPE_STRING |
| 62 | ) |
| 63 | |
| 64 | # Is always set from parse, even if all collections are empty |
| 65 | with_collections_empty = WithCollections().parse(bytes(WithCollections())) |
no outgoing calls