@@ -85,17 +85,19 @@ wrappers used to provide optional zero value support. Each of these has a specia
85
85
representation and is handled a little differently from normal messages. The Python
86
86
mapping for these is as follows:
87
87
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
+ +-------------------------------+-------------------------------------------------+--------------------------+
99
101
100
102
101
103
For the wrapper types, the Python type corresponds to the wrapped type, e.g.
0 commit comments