protobuf 6.32.0rc1__tar.gz → 6.32.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of protobuf might be problematic. Click here for more details.

Files changed (273) hide show
  1. {protobuf-6.32.0rc1/protobuf.egg-info → protobuf-6.32.1}/PKG-INFO +1 -1
  2. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/__init__.py +1 -1
  3. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/any_pb2.py +3 -3
  4. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/api_pb2.py +3 -3
  5. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/compiler/plugin_pb2.py +3 -3
  6. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/descriptor_pb2.py +3 -3
  7. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/duration_pb2.py +3 -3
  8. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/empty_pb2.py +3 -3
  9. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/field_mask_pb2.py +3 -3
  10. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/python_edition_defaults.py +1 -1
  11. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/type_checkers.py +36 -3
  12. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/json_format.py +6 -0
  13. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/runtime_version.py +2 -2
  14. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/source_context_pb2.py +3 -3
  15. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/struct_pb2.py +3 -3
  16. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/text_format.py +10 -0
  17. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/timestamp_pb2.py +3 -3
  18. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/type_pb2.py +3 -3
  19. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/wrappers_pb2.py +3 -3
  20. {protobuf-6.32.0rc1 → protobuf-6.32.1/protobuf.egg-info}/PKG-INFO +1 -1
  21. {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/convert.c +37 -14
  22. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/upb_edition_defaults.h +1 -1
  23. {protobuf-6.32.0rc1 → protobuf-6.32.1}/LICENSE +0 -0
  24. {protobuf-6.32.0rc1 → protobuf-6.32.1}/MANIFEST.in +0 -0
  25. {protobuf-6.32.0rc1 → protobuf-6.32.1}/README.md +0 -0
  26. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/__init__.py +0 -0
  27. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/any.py +0 -0
  28. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/compiler/__init__.py +0 -0
  29. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/descriptor.py +0 -0
  30. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/descriptor.upb.c +0 -0
  31. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/descriptor.upb.h +0 -0
  32. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/descriptor.upb_minitable.c +0 -0
  33. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/descriptor.upb_minitable.h +0 -0
  34. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/descriptor.upbdefs.c +0 -0
  35. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/descriptor.upbdefs.h +0 -0
  36. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/descriptor_database.py +0 -0
  37. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/descriptor_pool.py +0 -0
  38. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/duration.py +0 -0
  39. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/__init__.py +0 -0
  40. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/api_implementation.py +0 -0
  41. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/builder.py +0 -0
  42. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/containers.py +0 -0
  43. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/decoder.py +0 -0
  44. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/encoder.py +0 -0
  45. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/enum_type_wrapper.py +0 -0
  46. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/extension_dict.py +0 -0
  47. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/field_mask.py +0 -0
  48. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/message_listener.py +0 -0
  49. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/python_message.py +0 -0
  50. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/testing_refleaks.py +0 -0
  51. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/well_known_types.py +0 -0
  52. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/internal/wire_format.py +0 -0
  53. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/message.py +0 -0
  54. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/message_factory.py +0 -0
  55. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/proto.py +0 -0
  56. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/proto_builder.py +0 -0
  57. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/proto_json.py +0 -0
  58. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/proto_text.py +0 -0
  59. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/pyext/__init__.py +0 -0
  60. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/pyext/cpp_message.py +0 -0
  61. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/reflection.py +0 -0
  62. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/service_reflection.py +0 -0
  63. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/symbol_database.py +0 -0
  64. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/testdata/__init__.py +0 -0
  65. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/text_encoding.py +0 -0
  66. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/timestamp.py +0 -0
  67. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/unknown_fields.py +0 -0
  68. {protobuf-6.32.0rc1 → protobuf-6.32.1}/google/protobuf/util/__init__.py +0 -0
  69. {protobuf-6.32.0rc1 → protobuf-6.32.1}/protobuf.egg-info/SOURCES.txt +0 -0
  70. {protobuf-6.32.0rc1 → protobuf-6.32.1}/protobuf.egg-info/dependency_links.txt +0 -0
  71. {protobuf-6.32.0rc1 → protobuf-6.32.1}/protobuf.egg-info/top_level.txt +0 -0
  72. {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/convert.h +0 -0
  73. {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/descriptor.c +0 -0
  74. {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/descriptor.h +0 -0
  75. {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/descriptor_containers.c +0 -0
  76. {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/descriptor_containers.h +0 -0
  77. {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/descriptor_pool.c +0 -0
  78. {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/descriptor_pool.h +0 -0
  79. {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/extension_dict.c +0 -0
  80. {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/extension_dict.h +0 -0
  81. {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/map.c +0 -0
  82. {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/map.h +0 -0
  83. {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/message.c +0 -0
  84. {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/message.h +0 -0
  85. {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/protobuf.c +0 -0
  86. {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/protobuf.h +0 -0
  87. {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/python_api.h +0 -0
  88. {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/repeated.c +0 -0
  89. {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/repeated.h +0 -0
  90. {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/unknown_fields.c +0 -0
  91. {protobuf-6.32.0rc1 → protobuf-6.32.1}/python/unknown_fields.h +0 -0
  92. {protobuf-6.32.0rc1 → protobuf-6.32.1}/setup.cfg +0 -0
  93. {protobuf-6.32.0rc1 → protobuf-6.32.1}/setup.py +0 -0
  94. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/base/descriptor_constants.h +0 -0
  95. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/base/internal/endian.h +0 -0
  96. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/base/internal/log2.h +0 -0
  97. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/base/status.c +0 -0
  98. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/base/status.h +0 -0
  99. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/base/string_view.h +0 -0
  100. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/base/upcast.h +0 -0
  101. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/generated_code_support.h +0 -0
  102. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/hash/common.c +0 -0
  103. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/hash/common.h +0 -0
  104. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/hash/int_table.h +0 -0
  105. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/hash/str_table.h +0 -0
  106. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/lex/atoi.c +0 -0
  107. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/lex/atoi.h +0 -0
  108. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/lex/round_trip.c +0 -0
  109. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/lex/round_trip.h +0 -0
  110. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/lex/strtod.c +0 -0
  111. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/lex/strtod.h +0 -0
  112. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/lex/unicode.c +0 -0
  113. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/lex/unicode.h +0 -0
  114. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mem/alloc.c +0 -0
  115. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mem/alloc.h +0 -0
  116. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mem/arena.c +0 -0
  117. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mem/arena.h +0 -0
  118. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mem/internal/arena.h +0 -0
  119. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/accessors.c +0 -0
  120. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/accessors.h +0 -0
  121. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/accessors_split64.h +0 -0
  122. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/array.c +0 -0
  123. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/array.h +0 -0
  124. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/compare.c +0 -0
  125. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/compare.h +0 -0
  126. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/compat.c +0 -0
  127. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/compat.h +0 -0
  128. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/copy.c +0 -0
  129. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/copy.h +0 -0
  130. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/accessors.h +0 -0
  131. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/array.h +0 -0
  132. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/compare_unknown.c +0 -0
  133. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/compare_unknown.h +0 -0
  134. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/extension.c +0 -0
  135. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/extension.h +0 -0
  136. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/iterator.c +0 -0
  137. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/iterator.h +0 -0
  138. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/map.h +0 -0
  139. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/map_entry.h +0 -0
  140. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/map_sorter.h +0 -0
  141. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/message.c +0 -0
  142. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/message.h +0 -0
  143. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/tagged_ptr.h +0 -0
  144. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/internal/types.h +0 -0
  145. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/map.c +0 -0
  146. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/map.h +0 -0
  147. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/map_gencode_util.h +0 -0
  148. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/map_sorter.c +0 -0
  149. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/merge.c +0 -0
  150. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/merge.h +0 -0
  151. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/message.c +0 -0
  152. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/message.h +0 -0
  153. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/promote.c +0 -0
  154. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/promote.h +0 -0
  155. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/tagged_ptr.h +0 -0
  156. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/message/value.h +0 -0
  157. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_descriptor/build_enum.c +0 -0
  158. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_descriptor/build_enum.h +0 -0
  159. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_descriptor/decode.c +0 -0
  160. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_descriptor/decode.h +0 -0
  161. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_descriptor/internal/base92.c +0 -0
  162. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_descriptor/internal/base92.h +0 -0
  163. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_descriptor/internal/decoder.h +0 -0
  164. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_descriptor/internal/encode.c +0 -0
  165. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_descriptor/internal/encode.h +0 -0
  166. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_descriptor/internal/modifiers.h +0 -0
  167. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_descriptor/internal/wire_constants.h +0 -0
  168. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_descriptor/link.c +0 -0
  169. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_descriptor/link.h +0 -0
  170. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/compat.c +0 -0
  171. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/compat.h +0 -0
  172. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/enum.h +0 -0
  173. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/extension.h +0 -0
  174. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/extension_registry.c +0 -0
  175. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/extension_registry.h +0 -0
  176. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/field.h +0 -0
  177. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/file.h +0 -0
  178. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/internal/enum.h +0 -0
  179. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/internal/extension.h +0 -0
  180. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/internal/field.h +0 -0
  181. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/internal/file.h +0 -0
  182. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/internal/message.c +0 -0
  183. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/internal/message.h +0 -0
  184. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/internal/size_log2.h +0 -0
  185. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/internal/sub.h +0 -0
  186. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/message.c +0 -0
  187. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/message.h +0 -0
  188. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/mini_table/sub.h +0 -0
  189. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/port/atomic.h +0 -0
  190. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/port/def.inc +0 -0
  191. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/port/sanitizers.h +0 -0
  192. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/port/undef.inc +0 -0
  193. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/port/vsnprintf_compat.h +0 -0
  194. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/common.h +0 -0
  195. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/def.h +0 -0
  196. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/def_pool.c +0 -0
  197. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/def_pool.h +0 -0
  198. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/def_type.c +0 -0
  199. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/def_type.h +0 -0
  200. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/desc_state.c +0 -0
  201. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/descriptor_bootstrap.h +0 -0
  202. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/enum_def.c +0 -0
  203. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/enum_def.h +0 -0
  204. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/enum_reserved_range.c +0 -0
  205. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/enum_reserved_range.h +0 -0
  206. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/enum_value_def.c +0 -0
  207. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/enum_value_def.h +0 -0
  208. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/extension_range.c +0 -0
  209. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/extension_range.h +0 -0
  210. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/field_def.c +0 -0
  211. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/field_def.h +0 -0
  212. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/file_def.c +0 -0
  213. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/file_def.h +0 -0
  214. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/def_builder.c +0 -0
  215. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/def_builder.h +0 -0
  216. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/def_pool.h +0 -0
  217. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/desc_state.h +0 -0
  218. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/enum_def.h +0 -0
  219. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/enum_reserved_range.h +0 -0
  220. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/enum_value_def.h +0 -0
  221. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/extension_range.h +0 -0
  222. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/field_def.h +0 -0
  223. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/file_def.h +0 -0
  224. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/message_def.h +0 -0
  225. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/message_reserved_range.h +0 -0
  226. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/method_def.h +0 -0
  227. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/oneof_def.h +0 -0
  228. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/service_def.h +0 -0
  229. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/strdup2.c +0 -0
  230. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/internal/strdup2.h +0 -0
  231. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/message.c +0 -0
  232. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/message.h +0 -0
  233. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/message_def.c +0 -0
  234. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/message_def.h +0 -0
  235. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/message_reserved_range.c +0 -0
  236. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/message_reserved_range.h +0 -0
  237. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/method_def.c +0 -0
  238. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/method_def.h +0 -0
  239. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/oneof_def.c +0 -0
  240. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/oneof_def.h +0 -0
  241. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/service_def.c +0 -0
  242. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/reflection/service_def.h +0 -0
  243. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/text/debug_string.c +0 -0
  244. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/text/debug_string.h +0 -0
  245. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/text/encode.c +0 -0
  246. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/text/encode.h +0 -0
  247. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/text/internal/encode.c +0 -0
  248. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/text/internal/encode.h +0 -0
  249. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/text/options.h +0 -0
  250. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/util/def_to_proto.c +0 -0
  251. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/util/def_to_proto.h +0 -0
  252. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/util/required_fields.c +0 -0
  253. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/util/required_fields.h +0 -0
  254. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/byte_size.c +0 -0
  255. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/byte_size.h +0 -0
  256. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/decode.c +0 -0
  257. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/decode.h +0 -0
  258. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/encode.c +0 -0
  259. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/encode.h +0 -0
  260. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/eps_copy_input_stream.c +0 -0
  261. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/eps_copy_input_stream.h +0 -0
  262. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/internal/constants.h +0 -0
  263. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/internal/decoder.c +0 -0
  264. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/internal/decoder.h +0 -0
  265. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/internal/reader.h +0 -0
  266. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/reader.c +0 -0
  267. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/reader.h +0 -0
  268. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/types.h +0 -0
  269. {protobuf-6.32.0rc1 → protobuf-6.32.1}/upb/wire/writer.h +0 -0
  270. {protobuf-6.32.0rc1 → protobuf-6.32.1}/utf8_range/utf8_range.c +0 -0
  271. {protobuf-6.32.0rc1 → protobuf-6.32.1}/utf8_range/utf8_range.h +0 -0
  272. {protobuf-6.32.0rc1 → protobuf-6.32.1}/utf8_range/utf8_range_neon.inc +0 -0
  273. {protobuf-6.32.0rc1 → protobuf-6.32.1}/utf8_range/utf8_range_sse.inc +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: protobuf
3
- Version: 6.32.0rc1
3
+ Version: 6.32.1
4
4
  Summary: Protocol Buffers
5
5
  Home-page: https://developers.google.com/protocol-buffers/
6
6
  Download-URL: https://github.com/protocolbuffers/protobuf/releases
@@ -7,4 +7,4 @@
7
7
 
8
8
  # Copyright 2007 Google Inc. All Rights Reserved.
9
9
 
10
- __version__ = '6.32.0rc1'
10
+ __version__ = '6.32.1'
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: google/protobuf/any.proto
5
- # Protobuf Python Version: 6.32.0-rc1
5
+ # Protobuf Python Version: 6.32.1
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -13,8 +13,8 @@ _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
15
  32,
16
- 0,
17
- '-rc1',
16
+ 1,
17
+ '',
18
18
  'google/protobuf/any.proto'
19
19
  )
20
20
  # @@protoc_insertion_point(imports)
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: google/protobuf/api.proto
5
- # Protobuf Python Version: 6.32.0-rc1
5
+ # Protobuf Python Version: 6.32.1
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -13,8 +13,8 @@ _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
15
  32,
16
- 0,
17
- '-rc1',
16
+ 1,
17
+ '',
18
18
  'google/protobuf/api.proto'
19
19
  )
20
20
  # @@protoc_insertion_point(imports)
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: google/protobuf/compiler/plugin.proto
5
- # Protobuf Python Version: 6.32.0-rc1
5
+ # Protobuf Python Version: 6.32.1
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -13,8 +13,8 @@ _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
15
  32,
16
- 0,
17
- '-rc1',
16
+ 1,
17
+ '',
18
18
  'google/protobuf/compiler/plugin.proto'
19
19
  )
20
20
  # @@protoc_insertion_point(imports)
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: google/protobuf/descriptor.proto
5
- # Protobuf Python Version: 6.32.0-rc1
5
+ # Protobuf Python Version: 6.32.1
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -13,8 +13,8 @@ _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
15
  32,
16
- 0,
17
- '-rc1',
16
+ 1,
17
+ '',
18
18
  'google/protobuf/descriptor.proto'
19
19
  )
20
20
  # @@protoc_insertion_point(imports)
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: google/protobuf/duration.proto
5
- # Protobuf Python Version: 6.32.0-rc1
5
+ # Protobuf Python Version: 6.32.1
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -13,8 +13,8 @@ _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
15
  32,
16
- 0,
17
- '-rc1',
16
+ 1,
17
+ '',
18
18
  'google/protobuf/duration.proto'
19
19
  )
20
20
  # @@protoc_insertion_point(imports)
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: google/protobuf/empty.proto
5
- # Protobuf Python Version: 6.32.0-rc1
5
+ # Protobuf Python Version: 6.32.1
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -13,8 +13,8 @@ _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
15
  32,
16
- 0,
17
- '-rc1',
16
+ 1,
17
+ '',
18
18
  'google/protobuf/empty.proto'
19
19
  )
20
20
  # @@protoc_insertion_point(imports)
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: google/protobuf/field_mask.proto
5
- # Protobuf Python Version: 6.32.0-rc1
5
+ # Protobuf Python Version: 6.32.1
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -13,8 +13,8 @@ _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
15
  32,
16
- 0,
17
- '-rc1',
16
+ 1,
17
+ '',
18
18
  'google/protobuf/field_mask.proto'
19
19
  )
20
20
  # @@protoc_insertion_point(imports)
@@ -2,4 +2,4 @@
2
2
  This file contains the serialized FeatureSetDefaults object corresponding to
3
3
  the Pure Python runtime. This is used for feature resolution under Editions.
4
4
  """
5
- _PROTOBUF_INTERNAL_PYTHON_EDITION_DEFAULTS = b"\n\027\030\204\007\"\000*\020\010\001\020\002\030\002 \003(\0010\0028\002@\001\n\027\030\347\007\"\000*\020\010\002\020\001\030\001 \002(\0010\0018\002@\001\n\027\030\350\007\"\014\010\001\020\001\030\001 \002(\0010\001*\0048\002@\001 \346\007(\350\007"
5
+ _PROTOBUF_INTERNAL_PYTHON_EDITION_DEFAULTS = b"\n\027\030\204\007\"\000*\020\010\001\020\002\030\002 \003(\0010\0028\002@\001\n\027\030\347\007\"\000*\020\010\002\020\001\030\001 \002(\0010\0018\002@\001\n\027\030\350\007\"\014\010\001\020\001\030\001 \002(\0010\001*\0048\002@\001\n\027\030\351\007\"\020\010\001\020\001\030\001 \002(\0010\0018\001@\002*\000 \346\007(\351\007"
@@ -22,16 +22,20 @@ TYPE_TO_DESERIALIZE_METHOD: A dictionary with field types and deserialization
22
22
 
23
23
  __author__ = 'robinson@google.com (Will Robinson)'
24
24
 
25
- import struct
26
25
  import numbers
26
+ import struct
27
+ import warnings
27
28
 
29
+ from google.protobuf import descriptor
28
30
  from google.protobuf.internal import decoder
29
31
  from google.protobuf.internal import encoder
30
32
  from google.protobuf.internal import wire_format
31
- from google.protobuf import descriptor
32
33
 
33
34
  _FieldDescriptor = descriptor.FieldDescriptor
34
-
35
+ # TODO: Remove this warning count after 34.0
36
+ # Assign bool to int/enum warnings will print 100 times at most which should
37
+ # be enough for users to notice and do not cause timeout.
38
+ _BoolWarningCount = 100
35
39
 
36
40
  def TruncateToFourByteFloat(original):
37
41
  return struct.unpack('<f', struct.pack('<f', original))[0]
@@ -141,6 +145,21 @@ class IntValueChecker(object):
141
145
  """Checker used for integer fields. Performs type-check and range check."""
142
146
 
143
147
  def CheckValue(self, proposed_value):
148
+ global _BoolWarningCount
149
+ if type(proposed_value) == bool and _BoolWarningCount > 0:
150
+ _BoolWarningCount -= 1
151
+ message = (
152
+ '%.1024r has type %s, but expected one of: %s. This warning '
153
+ 'will turn into error in 7.34.0, please fix it before that.'
154
+ % (
155
+ proposed_value,
156
+ type(proposed_value),
157
+ (int,),
158
+ )
159
+ )
160
+ # TODO: Raise errors in 2026 Q1 release
161
+ warnings.warn(message)
162
+
144
163
  if not hasattr(proposed_value, '__index__') or (
145
164
  type(proposed_value).__module__ == 'numpy' and
146
165
  type(proposed_value).__name__ == 'ndarray'):
@@ -167,6 +186,20 @@ class EnumValueChecker(object):
167
186
  self._enum_type = enum_type
168
187
 
169
188
  def CheckValue(self, proposed_value):
189
+ global _BoolWarningCount
190
+ if type(proposed_value) == bool and _BoolWarningCount > 0:
191
+ _BoolWarningCount -= 1
192
+ message = (
193
+ '%.1024r has type %s, but expected one of: %s. This warning '
194
+ 'will turn into error in 7.34.0, please fix it before that.'
195
+ % (
196
+ proposed_value,
197
+ type(proposed_value),
198
+ (int,),
199
+ )
200
+ )
201
+ # TODO: Raise errors in 2026 Q1 release
202
+ warnings.warn(message)
170
203
  if not isinstance(proposed_value, numbers.Integral):
171
204
  message = ('%.1024r has type %s, but expected one of: %s' %
172
205
  (proposed_value, type(proposed_value), (int,)))
@@ -26,6 +26,7 @@ import json
26
26
  import math
27
27
  from operator import methodcaller
28
28
  import re
29
+ import warnings
29
30
 
30
31
  from google.protobuf import descriptor
31
32
  from google.protobuf import message_factory
@@ -191,6 +192,11 @@ class _Printer(object):
191
192
  self.use_integers_for_enums = use_integers_for_enums
192
193
  self.descriptor_pool = descriptor_pool
193
194
  if float_precision:
195
+ warnings.warn(
196
+ 'float_precision option is deprecated for json_format. '
197
+ 'This will turn into error in 7.34.0, please remove it '
198
+ 'before that.'
199
+ )
194
200
  self.float_format = '.{}g'.format(float_precision)
195
201
  else:
196
202
  self.float_format = None
@@ -29,8 +29,8 @@ class Domain(Enum):
29
29
  OSS_DOMAIN = Domain.PUBLIC
30
30
  OSS_MAJOR = 6
31
31
  OSS_MINOR = 32
32
- OSS_PATCH = 0
33
- OSS_SUFFIX = '-rc1'
32
+ OSS_PATCH = 1
33
+ OSS_SUFFIX = ''
34
34
 
35
35
  DOMAIN = OSS_DOMAIN
36
36
  MAJOR = OSS_MAJOR
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: google/protobuf/source_context.proto
5
- # Protobuf Python Version: 6.32.0-rc1
5
+ # Protobuf Python Version: 6.32.1
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -13,8 +13,8 @@ _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
15
  32,
16
- 0,
17
- '-rc1',
16
+ 1,
17
+ '',
18
18
  'google/protobuf/source_context.proto'
19
19
  )
20
20
  # @@protoc_insertion_point(imports)
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: google/protobuf/struct.proto
5
- # Protobuf Python Version: 6.32.0-rc1
5
+ # Protobuf Python Version: 6.32.1
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -13,8 +13,8 @@ _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
15
  32,
16
- 0,
17
- '-rc1',
16
+ 1,
17
+ '',
18
18
  'google/protobuf/struct.proto'
19
19
  )
20
20
  # @@protoc_insertion_point(imports)
@@ -25,6 +25,7 @@ import encodings.unicode_escape # pylint: disable=unused-import
25
25
  import io
26
26
  import math
27
27
  import re
28
+ import warnings
28
29
 
29
30
  from google.protobuf.internal import decoder
30
31
  from google.protobuf.internal import type_checkers
@@ -416,6 +417,10 @@ class _Printer(object):
416
417
  self.use_index_order = use_index_order
417
418
  self.float_format = float_format
418
419
  if double_format is not None:
420
+ warnings.warn(
421
+ 'double_format is deprecated for text_format. This will '
422
+ 'turn into error in 7.34.0, please remove it before that.'
423
+ )
419
424
  self.double_format = double_format
420
425
  else:
421
426
  self.double_format = float_format
@@ -652,6 +657,11 @@ class _Printer(object):
652
657
  out.write('false')
653
658
  elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_FLOAT:
654
659
  if self.float_format is not None:
660
+ warnings.warn(
661
+ 'float_format is deprecated for text_format. This '
662
+ 'will turn into error in 7.34.0, please remove it '
663
+ 'before that.'
664
+ )
655
665
  out.write('{1:{0}}'.format(self.float_format, value))
656
666
  else:
657
667
  if math.isnan(value):
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: google/protobuf/timestamp.proto
5
- # Protobuf Python Version: 6.32.0-rc1
5
+ # Protobuf Python Version: 6.32.1
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -13,8 +13,8 @@ _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
15
  32,
16
- 0,
17
- '-rc1',
16
+ 1,
17
+ '',
18
18
  'google/protobuf/timestamp.proto'
19
19
  )
20
20
  # @@protoc_insertion_point(imports)
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: google/protobuf/type.proto
5
- # Protobuf Python Version: 6.32.0-rc1
5
+ # Protobuf Python Version: 6.32.1
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -13,8 +13,8 @@ _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
15
  32,
16
- 0,
17
- '-rc1',
16
+ 1,
17
+ '',
18
18
  'google/protobuf/type.proto'
19
19
  )
20
20
  # @@protoc_insertion_point(imports)
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: google/protobuf/wrappers.proto
5
- # Protobuf Python Version: 6.32.0-rc1
5
+ # Protobuf Python Version: 6.32.1
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -13,8 +13,8 @@ _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
15
  32,
16
- 0,
17
- '-rc1',
16
+ 1,
17
+ '',
18
18
  'google/protobuf/wrappers.proto'
19
19
  )
20
20
  # @@protoc_insertion_point(imports)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: protobuf
3
- Version: 6.32.0rc1
3
+ Version: 6.32.1
4
4
  Summary: Protocol Buffers
5
5
  Home-page: https://developers.google.com/protocol-buffers/
6
6
  Download-URL: https://github.com/protocolbuffers/protobuf/releases
@@ -6,7 +6,6 @@
6
6
  // https://developers.google.com/open-source/licenses/bsd
7
7
 
8
8
  #include "python/convert.h"
9
-
10
9
  #include "python/message.h"
11
10
  #include "python/protobuf.h"
12
11
  #include "upb/message/compare.h"
@@ -62,7 +61,22 @@ PyObject* PyUpb_UpbToPy(upb_MessageValue val, const upb_FieldDef* f,
62
61
  }
63
62
  }
64
63
 
65
- static bool PyUpb_GetInt64(PyObject* obj, int64_t* val) {
64
+ // TODO: raise error in 2026 Q1 release
65
+ static void WarnBool(const upb_FieldDef* f) {
66
+ static int bool_warning_count = 100;
67
+ if (bool_warning_count > 0) {
68
+ --bool_warning_count;
69
+ PyErr_WarnFormat(PyExc_DeprecationWarning, 3,
70
+ "Field %s: Expected an int, got a boolean. This "
71
+ "will be rejected in 7.34.0, please fix it before that",
72
+ upb_FieldDef_FullName(f));
73
+ }
74
+ }
75
+
76
+ static bool PyUpb_GetInt64(PyObject* obj, const upb_FieldDef* f, int64_t* val) {
77
+ if (PyBool_Check(obj)) {
78
+ WarnBool(f);
79
+ }
66
80
  // We require that the value is either an integer or has an __index__
67
81
  // conversion.
68
82
  obj = PyNumber_Index(obj);
@@ -81,7 +95,11 @@ static bool PyUpb_GetInt64(PyObject* obj, int64_t* val) {
81
95
  return ok;
82
96
  }
83
97
 
84
- static bool PyUpb_GetUint64(PyObject* obj, uint64_t* val) {
98
+ static bool PyUpb_GetUint64(PyObject* obj, const upb_FieldDef* f,
99
+ uint64_t* val) {
100
+ if (PyBool_Check(obj)) {
101
+ WarnBool(f);
102
+ }
85
103
  // We require that the value is either an integer or has an __index__
86
104
  // conversion.
87
105
  obj = PyNumber_Index(obj);
@@ -98,9 +116,9 @@ static bool PyUpb_GetUint64(PyObject* obj, uint64_t* val) {
98
116
  return ok;
99
117
  }
100
118
 
101
- static bool PyUpb_GetInt32(PyObject* obj, int32_t* val) {
119
+ static bool PyUpb_GetInt32(PyObject* obj, const upb_FieldDef* f, int32_t* val) {
102
120
  int64_t i64;
103
- if (!PyUpb_GetInt64(obj, &i64)) return false;
121
+ if (!PyUpb_GetInt64(obj, f, &i64)) return false;
104
122
  if (i64 < INT32_MIN || i64 > INT32_MAX) {
105
123
  PyErr_Format(PyExc_ValueError, "Value out of range: %S", obj);
106
124
  return false;
@@ -109,9 +127,10 @@ static bool PyUpb_GetInt32(PyObject* obj, int32_t* val) {
109
127
  return true;
110
128
  }
111
129
 
112
- static bool PyUpb_GetUint32(PyObject* obj, uint32_t* val) {
130
+ static bool PyUpb_GetUint32(PyObject* obj, const upb_FieldDef* f,
131
+ uint32_t* val) {
113
132
  uint64_t u64;
114
- if (!PyUpb_GetUint64(obj, &u64)) return false;
133
+ if (!PyUpb_GetUint64(obj, f, &u64)) return false;
115
134
  if (u64 > UINT32_MAX) {
116
135
  PyErr_Format(PyExc_ValueError, "Value out of range: %S", obj);
117
136
  return false;
@@ -164,8 +183,9 @@ const char* upb_FieldDef_TypeString(const upb_FieldDef* f) {
164
183
  UPB_UNREACHABLE();
165
184
  }
166
185
 
167
- static bool PyUpb_PyToUpbEnum(PyObject* obj, const upb_EnumDef* e,
186
+ static bool PyUpb_PyToUpbEnum(PyObject* obj, const upb_FieldDef* f,
168
187
  upb_MessageValue* val) {
188
+ const upb_EnumDef* e = upb_FieldDef_EnumSubDef(f);
169
189
  if (PyUnicode_Check(obj)) {
170
190
  Py_ssize_t size;
171
191
  const char* name = PyUnicode_AsUTF8AndSize(obj, &size);
@@ -178,8 +198,11 @@ static bool PyUpb_PyToUpbEnum(PyObject* obj, const upb_EnumDef* e,
178
198
  val->int32_val = upb_EnumValueDef_Number(ev);
179
199
  return true;
180
200
  } else {
201
+ if (PyBool_Check(obj)) {
202
+ WarnBool(f);
203
+ }
181
204
  int32_t i32;
182
- if (!PyUpb_GetInt32(obj, &i32)) return false;
205
+ if (!PyUpb_GetInt32(obj, f, &i32)) return false;
183
206
  if (upb_EnumDef_IsClosed(e) && !upb_EnumDef_CheckNumber(e, i32)) {
184
207
  PyErr_Format(PyExc_ValueError, "invalid enumerator %d", (int)i32);
185
208
  return false;
@@ -238,15 +261,15 @@ bool PyUpb_PyToUpb(PyObject* obj, const upb_FieldDef* f, upb_MessageValue* val,
238
261
  upb_Arena* arena) {
239
262
  switch (upb_FieldDef_CType(f)) {
240
263
  case kUpb_CType_Enum:
241
- return PyUpb_PyToUpbEnum(obj, upb_FieldDef_EnumSubDef(f), val);
264
+ return PyUpb_PyToUpbEnum(obj, f, val);
242
265
  case kUpb_CType_Int32:
243
- return PyUpb_GetInt32(obj, &val->int32_val);
266
+ return PyUpb_GetInt32(obj, f, &val->int32_val);
244
267
  case kUpb_CType_Int64:
245
- return PyUpb_GetInt64(obj, &val->int64_val);
268
+ return PyUpb_GetInt64(obj, f, &val->int64_val);
246
269
  case kUpb_CType_UInt32:
247
- return PyUpb_GetUint32(obj, &val->uint32_val);
270
+ return PyUpb_GetUint32(obj, f, &val->uint32_val);
248
271
  case kUpb_CType_UInt64:
249
- return PyUpb_GetUint64(obj, &val->uint64_val);
272
+ return PyUpb_GetUint64(obj, f, &val->uint64_val);
250
273
  case kUpb_CType_Float:
251
274
  if (!PyFloat_Check(obj) && PyUpb_IsNumpyNdarray(obj, f)) return false;
252
275
  val->float_val = PyFloat_AsDouble(obj);
@@ -13,7 +13,7 @@
13
13
  // features. This is used for feature resolution under Editions.
14
14
  // NOLINTBEGIN
15
15
  // clang-format off
16
- #define UPB_INTERNAL_UPB_EDITION_DEFAULTS "\n\027\030\204\007\"\000*\020\010\001\020\002\030\002 \003(\0010\0028\002@\001\n\027\030\347\007\"\000*\020\010\002\020\001\030\001 \002(\0010\0018\002@\001\n\027\030\350\007\"\014\010\001\020\001\030\001 \002(\0010\001*\0048\002@\001 \346\007(\350\007"
16
+ #define UPB_INTERNAL_UPB_EDITION_DEFAULTS "\n\027\030\204\007\"\000*\020\010\001\020\002\030\002 \003(\0010\0028\002@\001\n\027\030\347\007\"\000*\020\010\002\020\001\030\001 \002(\0010\0018\002@\001\n\027\030\350\007\"\014\010\001\020\001\030\001 \002(\0010\001*\0048\002@\001\n\027\030\351\007\"\020\010\001\020\001\030\001 \002(\0010\0018\001@\002*\000 \346\007(\351\007"
17
17
  // clang-format on
18
18
  // NOLINTEND
19
19
 
File without changes
File without changes
File without changes