@@ -85,17 +85,19 @@ wrappers used to provide optional zero value support. Each of these has a specia
8585representation and is handled a little differently from normal messages. The Python
8686mapping for these is as follows:
8787
88- +-------------------------------+-----------------------------------------------+--------------------------+
89- | ``Google Message `` | ``Python Type `` | ``Default `` |
90- +===============================+===============================================+==========================+
91- | ``google.protobuf.duration `` | :class: `datetime.timedelta ` | ``0 `` |
92- +-------------------------------+-----------------------------------------------+--------------------------+
93- | ``google.protobuf.timestamp `` | ``Timezone-aware `` :class: `datetime.datetime ` | ``1970-01-01T00:00:00Z `` |
94- +-------------------------------+-----------------------------------------------+--------------------------+
95- | ``google.protobuf.*Value `` | ``Optional[...] ``/``None `` | ``None `` |
96- +-------------------------------+-----------------------------------------------+--------------------------+
97- | ``google.protobuf.* `` | ``betterproto.lib.google.protobuf.* `` | ``None `` |
98- +-------------------------------+-----------------------------------------------+--------------------------+
88+ +-------------------------------+-------------------------------------------------+--------------------------+
89+ | ``Google Message `` | ``Python Type `` | ``Default `` |
90+ +===============================+=================================================+==========================+
91+ | ``google.protobuf.duration `` | :class: `datetime.timedelta ` | ``0 `` |
92+ +-------------------------------+-------------------------------------------------+--------------------------+
93+ | ``google.protobuf.timestamp `` | ``Timezone-aware `` :class: `datetime.datetime ` | ``1970-01-01T00:00:00Z `` |
94+ +-------------------------------+-------------------------------------------------+--------------------------+
95+ | ``google.protobuf.*Value `` | ``Optional[...] ``/``None `` | ``None `` |
96+ +-------------------------------+-------------------------------------------------+--------------------------+
97+ | ``google.protobuf.* `` | ``betterproto.lib.std.google.protobuf.* `` | ``None `` |
98+ +-------------------------------+-------------------------------------------------+--------------------------+
99+ | ``google.protobuf.* `` | ``betterproto.lib.pydantic.google.protobuf.* `` | ``None `` |
100+ +-------------------------------+-------------------------------------------------+--------------------------+
99101
100102
101103For the wrapper types, the Python type corresponds to the wrapped type, e.g.
0 commit comments