protobuf 6.32.0__tar.gz → 6.32.0rc2__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.0/protobuf.egg-info → protobuf-6.32.0rc2}/PKG-INFO +1 -1
  2. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/__init__.py +1 -1
  3. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/any_pb2.py +2 -2
  4. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/api_pb2.py +2 -2
  5. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/compiler/plugin_pb2.py +2 -2
  6. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/descriptor_pb2.py +2 -2
  7. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/duration_pb2.py +2 -2
  8. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/empty_pb2.py +2 -2
  9. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/field_mask_pb2.py +2 -2
  10. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/internal/type_checkers.py +3 -36
  11. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/json_format.py +0 -6
  12. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/runtime_version.py +1 -1
  13. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/source_context_pb2.py +2 -2
  14. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/struct_pb2.py +2 -2
  15. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/text_format.py +0 -10
  16. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/timestamp_pb2.py +2 -2
  17. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/type_pb2.py +2 -2
  18. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/wrappers_pb2.py +2 -2
  19. {protobuf-6.32.0 → protobuf-6.32.0rc2/protobuf.egg-info}/PKG-INFO +1 -1
  20. {protobuf-6.32.0 → protobuf-6.32.0rc2}/python/convert.c +14 -37
  21. {protobuf-6.32.0 → protobuf-6.32.0rc2}/LICENSE +0 -0
  22. {protobuf-6.32.0 → protobuf-6.32.0rc2}/MANIFEST.in +0 -0
  23. {protobuf-6.32.0 → protobuf-6.32.0rc2}/README.md +0 -0
  24. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/__init__.py +0 -0
  25. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/any.py +0 -0
  26. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/compiler/__init__.py +0 -0
  27. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/descriptor.py +0 -0
  28. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/descriptor.upb.c +0 -0
  29. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/descriptor.upb.h +0 -0
  30. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/descriptor.upb_minitable.c +0 -0
  31. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/descriptor.upb_minitable.h +0 -0
  32. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/descriptor.upbdefs.c +0 -0
  33. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/descriptor.upbdefs.h +0 -0
  34. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/descriptor_database.py +0 -0
  35. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/descriptor_pool.py +0 -0
  36. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/duration.py +0 -0
  37. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/internal/__init__.py +0 -0
  38. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/internal/api_implementation.py +0 -0
  39. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/internal/builder.py +0 -0
  40. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/internal/containers.py +0 -0
  41. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/internal/decoder.py +0 -0
  42. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/internal/encoder.py +0 -0
  43. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/internal/enum_type_wrapper.py +0 -0
  44. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/internal/extension_dict.py +0 -0
  45. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/internal/field_mask.py +0 -0
  46. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/internal/message_listener.py +0 -0
  47. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/internal/python_edition_defaults.py +0 -0
  48. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/internal/python_message.py +0 -0
  49. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/internal/testing_refleaks.py +0 -0
  50. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/internal/well_known_types.py +0 -0
  51. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/internal/wire_format.py +0 -0
  52. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/message.py +0 -0
  53. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/message_factory.py +0 -0
  54. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/proto.py +0 -0
  55. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/proto_builder.py +0 -0
  56. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/proto_json.py +0 -0
  57. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/proto_text.py +0 -0
  58. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/pyext/__init__.py +0 -0
  59. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/pyext/cpp_message.py +0 -0
  60. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/reflection.py +0 -0
  61. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/service_reflection.py +0 -0
  62. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/symbol_database.py +0 -0
  63. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/testdata/__init__.py +0 -0
  64. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/text_encoding.py +0 -0
  65. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/timestamp.py +0 -0
  66. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/unknown_fields.py +0 -0
  67. {protobuf-6.32.0 → protobuf-6.32.0rc2}/google/protobuf/util/__init__.py +0 -0
  68. {protobuf-6.32.0 → protobuf-6.32.0rc2}/protobuf.egg-info/SOURCES.txt +0 -0
  69. {protobuf-6.32.0 → protobuf-6.32.0rc2}/protobuf.egg-info/dependency_links.txt +0 -0
  70. {protobuf-6.32.0 → protobuf-6.32.0rc2}/protobuf.egg-info/top_level.txt +0 -0
  71. {protobuf-6.32.0 → protobuf-6.32.0rc2}/python/convert.h +0 -0
  72. {protobuf-6.32.0 → protobuf-6.32.0rc2}/python/descriptor.c +0 -0
  73. {protobuf-6.32.0 → protobuf-6.32.0rc2}/python/descriptor.h +0 -0
  74. {protobuf-6.32.0 → protobuf-6.32.0rc2}/python/descriptor_containers.c +0 -0
  75. {protobuf-6.32.0 → protobuf-6.32.0rc2}/python/descriptor_containers.h +0 -0
  76. {protobuf-6.32.0 → protobuf-6.32.0rc2}/python/descriptor_pool.c +0 -0
  77. {protobuf-6.32.0 → protobuf-6.32.0rc2}/python/descriptor_pool.h +0 -0
  78. {protobuf-6.32.0 → protobuf-6.32.0rc2}/python/extension_dict.c +0 -0
  79. {protobuf-6.32.0 → protobuf-6.32.0rc2}/python/extension_dict.h +0 -0
  80. {protobuf-6.32.0 → protobuf-6.32.0rc2}/python/map.c +0 -0
  81. {protobuf-6.32.0 → protobuf-6.32.0rc2}/python/map.h +0 -0
  82. {protobuf-6.32.0 → protobuf-6.32.0rc2}/python/message.c +0 -0
  83. {protobuf-6.32.0 → protobuf-6.32.0rc2}/python/message.h +0 -0
  84. {protobuf-6.32.0 → protobuf-6.32.0rc2}/python/protobuf.c +0 -0
  85. {protobuf-6.32.0 → protobuf-6.32.0rc2}/python/protobuf.h +0 -0
  86. {protobuf-6.32.0 → protobuf-6.32.0rc2}/python/python_api.h +0 -0
  87. {protobuf-6.32.0 → protobuf-6.32.0rc2}/python/repeated.c +0 -0
  88. {protobuf-6.32.0 → protobuf-6.32.0rc2}/python/repeated.h +0 -0
  89. {protobuf-6.32.0 → protobuf-6.32.0rc2}/python/unknown_fields.c +0 -0
  90. {protobuf-6.32.0 → protobuf-6.32.0rc2}/python/unknown_fields.h +0 -0
  91. {protobuf-6.32.0 → protobuf-6.32.0rc2}/setup.cfg +0 -0
  92. {protobuf-6.32.0 → protobuf-6.32.0rc2}/setup.py +0 -0
  93. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/base/descriptor_constants.h +0 -0
  94. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/base/internal/endian.h +0 -0
  95. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/base/internal/log2.h +0 -0
  96. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/base/status.c +0 -0
  97. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/base/status.h +0 -0
  98. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/base/string_view.h +0 -0
  99. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/base/upcast.h +0 -0
  100. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/generated_code_support.h +0 -0
  101. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/hash/common.c +0 -0
  102. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/hash/common.h +0 -0
  103. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/hash/int_table.h +0 -0
  104. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/hash/str_table.h +0 -0
  105. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/lex/atoi.c +0 -0
  106. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/lex/atoi.h +0 -0
  107. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/lex/round_trip.c +0 -0
  108. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/lex/round_trip.h +0 -0
  109. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/lex/strtod.c +0 -0
  110. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/lex/strtod.h +0 -0
  111. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/lex/unicode.c +0 -0
  112. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/lex/unicode.h +0 -0
  113. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mem/alloc.c +0 -0
  114. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mem/alloc.h +0 -0
  115. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mem/arena.c +0 -0
  116. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mem/arena.h +0 -0
  117. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mem/internal/arena.h +0 -0
  118. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/accessors.c +0 -0
  119. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/accessors.h +0 -0
  120. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/accessors_split64.h +0 -0
  121. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/array.c +0 -0
  122. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/array.h +0 -0
  123. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/compare.c +0 -0
  124. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/compare.h +0 -0
  125. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/compat.c +0 -0
  126. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/compat.h +0 -0
  127. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/copy.c +0 -0
  128. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/copy.h +0 -0
  129. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/internal/accessors.h +0 -0
  130. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/internal/array.h +0 -0
  131. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/internal/compare_unknown.c +0 -0
  132. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/internal/compare_unknown.h +0 -0
  133. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/internal/extension.c +0 -0
  134. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/internal/extension.h +0 -0
  135. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/internal/iterator.c +0 -0
  136. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/internal/iterator.h +0 -0
  137. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/internal/map.h +0 -0
  138. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/internal/map_entry.h +0 -0
  139. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/internal/map_sorter.h +0 -0
  140. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/internal/message.c +0 -0
  141. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/internal/message.h +0 -0
  142. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/internal/tagged_ptr.h +0 -0
  143. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/internal/types.h +0 -0
  144. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/map.c +0 -0
  145. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/map.h +0 -0
  146. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/map_gencode_util.h +0 -0
  147. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/map_sorter.c +0 -0
  148. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/merge.c +0 -0
  149. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/merge.h +0 -0
  150. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/message.c +0 -0
  151. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/message.h +0 -0
  152. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/promote.c +0 -0
  153. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/promote.h +0 -0
  154. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/tagged_ptr.h +0 -0
  155. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/message/value.h +0 -0
  156. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_descriptor/build_enum.c +0 -0
  157. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_descriptor/build_enum.h +0 -0
  158. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_descriptor/decode.c +0 -0
  159. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_descriptor/decode.h +0 -0
  160. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_descriptor/internal/base92.c +0 -0
  161. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_descriptor/internal/base92.h +0 -0
  162. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_descriptor/internal/decoder.h +0 -0
  163. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_descriptor/internal/encode.c +0 -0
  164. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_descriptor/internal/encode.h +0 -0
  165. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_descriptor/internal/modifiers.h +0 -0
  166. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_descriptor/internal/wire_constants.h +0 -0
  167. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_descriptor/link.c +0 -0
  168. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_descriptor/link.h +0 -0
  169. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_table/compat.c +0 -0
  170. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_table/compat.h +0 -0
  171. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_table/enum.h +0 -0
  172. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_table/extension.h +0 -0
  173. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_table/extension_registry.c +0 -0
  174. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_table/extension_registry.h +0 -0
  175. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_table/field.h +0 -0
  176. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_table/file.h +0 -0
  177. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_table/internal/enum.h +0 -0
  178. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_table/internal/extension.h +0 -0
  179. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_table/internal/field.h +0 -0
  180. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_table/internal/file.h +0 -0
  181. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_table/internal/message.c +0 -0
  182. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_table/internal/message.h +0 -0
  183. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_table/internal/size_log2.h +0 -0
  184. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_table/internal/sub.h +0 -0
  185. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_table/message.c +0 -0
  186. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_table/message.h +0 -0
  187. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/mini_table/sub.h +0 -0
  188. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/port/atomic.h +0 -0
  189. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/port/def.inc +0 -0
  190. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/port/sanitizers.h +0 -0
  191. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/port/undef.inc +0 -0
  192. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/port/vsnprintf_compat.h +0 -0
  193. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/common.h +0 -0
  194. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/def.h +0 -0
  195. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/def_pool.c +0 -0
  196. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/def_pool.h +0 -0
  197. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/def_type.c +0 -0
  198. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/def_type.h +0 -0
  199. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/desc_state.c +0 -0
  200. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/descriptor_bootstrap.h +0 -0
  201. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/enum_def.c +0 -0
  202. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/enum_def.h +0 -0
  203. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/enum_reserved_range.c +0 -0
  204. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/enum_reserved_range.h +0 -0
  205. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/enum_value_def.c +0 -0
  206. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/enum_value_def.h +0 -0
  207. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/extension_range.c +0 -0
  208. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/extension_range.h +0 -0
  209. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/field_def.c +0 -0
  210. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/field_def.h +0 -0
  211. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/file_def.c +0 -0
  212. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/file_def.h +0 -0
  213. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/internal/def_builder.c +0 -0
  214. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/internal/def_builder.h +0 -0
  215. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/internal/def_pool.h +0 -0
  216. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/internal/desc_state.h +0 -0
  217. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/internal/enum_def.h +0 -0
  218. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/internal/enum_reserved_range.h +0 -0
  219. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/internal/enum_value_def.h +0 -0
  220. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/internal/extension_range.h +0 -0
  221. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/internal/field_def.h +0 -0
  222. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/internal/file_def.h +0 -0
  223. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/internal/message_def.h +0 -0
  224. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/internal/message_reserved_range.h +0 -0
  225. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/internal/method_def.h +0 -0
  226. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/internal/oneof_def.h +0 -0
  227. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/internal/service_def.h +0 -0
  228. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/internal/strdup2.c +0 -0
  229. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/internal/strdup2.h +0 -0
  230. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/internal/upb_edition_defaults.h +0 -0
  231. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/message.c +0 -0
  232. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/message.h +0 -0
  233. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/message_def.c +0 -0
  234. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/message_def.h +0 -0
  235. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/message_reserved_range.c +0 -0
  236. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/message_reserved_range.h +0 -0
  237. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/method_def.c +0 -0
  238. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/method_def.h +0 -0
  239. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/oneof_def.c +0 -0
  240. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/oneof_def.h +0 -0
  241. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/service_def.c +0 -0
  242. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/reflection/service_def.h +0 -0
  243. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/text/debug_string.c +0 -0
  244. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/text/debug_string.h +0 -0
  245. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/text/encode.c +0 -0
  246. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/text/encode.h +0 -0
  247. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/text/internal/encode.c +0 -0
  248. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/text/internal/encode.h +0 -0
  249. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/text/options.h +0 -0
  250. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/util/def_to_proto.c +0 -0
  251. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/util/def_to_proto.h +0 -0
  252. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/util/required_fields.c +0 -0
  253. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/util/required_fields.h +0 -0
  254. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/wire/byte_size.c +0 -0
  255. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/wire/byte_size.h +0 -0
  256. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/wire/decode.c +0 -0
  257. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/wire/decode.h +0 -0
  258. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/wire/encode.c +0 -0
  259. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/wire/encode.h +0 -0
  260. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/wire/eps_copy_input_stream.c +0 -0
  261. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/wire/eps_copy_input_stream.h +0 -0
  262. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/wire/internal/constants.h +0 -0
  263. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/wire/internal/decoder.c +0 -0
  264. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/wire/internal/decoder.h +0 -0
  265. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/wire/internal/reader.h +0 -0
  266. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/wire/reader.c +0 -0
  267. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/wire/reader.h +0 -0
  268. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/wire/types.h +0 -0
  269. {protobuf-6.32.0 → protobuf-6.32.0rc2}/upb/wire/writer.h +0 -0
  270. {protobuf-6.32.0 → protobuf-6.32.0rc2}/utf8_range/utf8_range.c +0 -0
  271. {protobuf-6.32.0 → protobuf-6.32.0rc2}/utf8_range/utf8_range.h +0 -0
  272. {protobuf-6.32.0 → protobuf-6.32.0rc2}/utf8_range/utf8_range_neon.inc +0 -0
  273. {protobuf-6.32.0 → protobuf-6.32.0rc2}/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.0
3
+ Version: 6.32.0rc2
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.0'
10
+ __version__ = '6.32.0rc2'
@@ -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
5
+ # Protobuf Python Version: 6.32.0-rc2
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
@@ -14,7 +14,7 @@ _runtime_version.ValidateProtobufRuntimeVersion(
14
14
  6,
15
15
  32,
16
16
  0,
17
- '',
17
+ '-rc2',
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
5
+ # Protobuf Python Version: 6.32.0-rc2
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
@@ -14,7 +14,7 @@ _runtime_version.ValidateProtobufRuntimeVersion(
14
14
  6,
15
15
  32,
16
16
  0,
17
- '',
17
+ '-rc2',
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
5
+ # Protobuf Python Version: 6.32.0-rc2
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
@@ -14,7 +14,7 @@ _runtime_version.ValidateProtobufRuntimeVersion(
14
14
  6,
15
15
  32,
16
16
  0,
17
- '',
17
+ '-rc2',
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
5
+ # Protobuf Python Version: 6.32.0-rc2
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
@@ -14,7 +14,7 @@ _runtime_version.ValidateProtobufRuntimeVersion(
14
14
  6,
15
15
  32,
16
16
  0,
17
- '',
17
+ '-rc2',
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
5
+ # Protobuf Python Version: 6.32.0-rc2
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
@@ -14,7 +14,7 @@ _runtime_version.ValidateProtobufRuntimeVersion(
14
14
  6,
15
15
  32,
16
16
  0,
17
- '',
17
+ '-rc2',
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
5
+ # Protobuf Python Version: 6.32.0-rc2
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
@@ -14,7 +14,7 @@ _runtime_version.ValidateProtobufRuntimeVersion(
14
14
  6,
15
15
  32,
16
16
  0,
17
- '',
17
+ '-rc2',
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
5
+ # Protobuf Python Version: 6.32.0-rc2
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
@@ -14,7 +14,7 @@ _runtime_version.ValidateProtobufRuntimeVersion(
14
14
  6,
15
15
  32,
16
16
  0,
17
- '',
17
+ '-rc2',
18
18
  'google/protobuf/field_mask.proto'
19
19
  )
20
20
  # @@protoc_insertion_point(imports)
@@ -22,20 +22,16 @@ 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 numbers
26
25
  import struct
27
- import warnings
26
+ import numbers
28
27
 
29
- from google.protobuf import descriptor
30
28
  from google.protobuf.internal import decoder
31
29
  from google.protobuf.internal import encoder
32
30
  from google.protobuf.internal import wire_format
31
+ from google.protobuf import descriptor
33
32
 
34
33
  _FieldDescriptor = descriptor.FieldDescriptor
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
34
+
39
35
 
40
36
  def TruncateToFourByteFloat(original):
41
37
  return struct.unpack('<f', struct.pack('<f', original))[0]
@@ -145,21 +141,6 @@ class IntValueChecker(object):
145
141
  """Checker used for integer fields. Performs type-check and range check."""
146
142
 
147
143
  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
-
163
144
  if not hasattr(proposed_value, '__index__') or (
164
145
  type(proposed_value).__module__ == 'numpy' and
165
146
  type(proposed_value).__name__ == 'ndarray'):
@@ -186,20 +167,6 @@ class EnumValueChecker(object):
186
167
  self._enum_type = enum_type
187
168
 
188
169
  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)
203
170
  if not isinstance(proposed_value, numbers.Integral):
204
171
  message = ('%.1024r has type %s, but expected one of: %s' %
205
172
  (proposed_value, type(proposed_value), (int,)))
@@ -26,7 +26,6 @@ import json
26
26
  import math
27
27
  from operator import methodcaller
28
28
  import re
29
- import warnings
30
29
 
31
30
  from google.protobuf import descriptor
32
31
  from google.protobuf import message_factory
@@ -192,11 +191,6 @@ class _Printer(object):
192
191
  self.use_integers_for_enums = use_integers_for_enums
193
192
  self.descriptor_pool = descriptor_pool
194
193
  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
- )
200
194
  self.float_format = '.{}g'.format(float_precision)
201
195
  else:
202
196
  self.float_format = None
@@ -30,7 +30,7 @@ OSS_DOMAIN = Domain.PUBLIC
30
30
  OSS_MAJOR = 6
31
31
  OSS_MINOR = 32
32
32
  OSS_PATCH = 0
33
- OSS_SUFFIX = ''
33
+ OSS_SUFFIX = '-rc2'
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
5
+ # Protobuf Python Version: 6.32.0-rc2
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
@@ -14,7 +14,7 @@ _runtime_version.ValidateProtobufRuntimeVersion(
14
14
  6,
15
15
  32,
16
16
  0,
17
- '',
17
+ '-rc2',
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
5
+ # Protobuf Python Version: 6.32.0-rc2
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
@@ -14,7 +14,7 @@ _runtime_version.ValidateProtobufRuntimeVersion(
14
14
  6,
15
15
  32,
16
16
  0,
17
- '',
17
+ '-rc2',
18
18
  'google/protobuf/struct.proto'
19
19
  )
20
20
  # @@protoc_insertion_point(imports)
@@ -25,7 +25,6 @@ import encodings.unicode_escape # pylint: disable=unused-import
25
25
  import io
26
26
  import math
27
27
  import re
28
- import warnings
29
28
 
30
29
  from google.protobuf.internal import decoder
31
30
  from google.protobuf.internal import type_checkers
@@ -417,10 +416,6 @@ class _Printer(object):
417
416
  self.use_index_order = use_index_order
418
417
  self.float_format = float_format
419
418
  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
- )
424
419
  self.double_format = double_format
425
420
  else:
426
421
  self.double_format = float_format
@@ -657,11 +652,6 @@ class _Printer(object):
657
652
  out.write('false')
658
653
  elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_FLOAT:
659
654
  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
- )
665
655
  out.write('{1:{0}}'.format(self.float_format, value))
666
656
  else:
667
657
  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
5
+ # Protobuf Python Version: 6.32.0-rc2
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
@@ -14,7 +14,7 @@ _runtime_version.ValidateProtobufRuntimeVersion(
14
14
  6,
15
15
  32,
16
16
  0,
17
- '',
17
+ '-rc2',
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
5
+ # Protobuf Python Version: 6.32.0-rc2
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
@@ -14,7 +14,7 @@ _runtime_version.ValidateProtobufRuntimeVersion(
14
14
  6,
15
15
  32,
16
16
  0,
17
- '',
17
+ '-rc2',
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
5
+ # Protobuf Python Version: 6.32.0-rc2
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
@@ -14,7 +14,7 @@ _runtime_version.ValidateProtobufRuntimeVersion(
14
14
  6,
15
15
  32,
16
16
  0,
17
- '',
17
+ '-rc2',
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.0
3
+ Version: 6.32.0rc2
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,6 +6,7 @@
6
6
  // https://developers.google.com/open-source/licenses/bsd
7
7
 
8
8
  #include "python/convert.h"
9
+
9
10
  #include "python/message.h"
10
11
  #include "python/protobuf.h"
11
12
  #include "upb/message/compare.h"
@@ -61,22 +62,7 @@ PyObject* PyUpb_UpbToPy(upb_MessageValue val, const upb_FieldDef* f,
61
62
  }
62
63
  }
63
64
 
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
- }
65
+ static bool PyUpb_GetInt64(PyObject* obj, int64_t* val) {
80
66
  // We require that the value is either an integer or has an __index__
81
67
  // conversion.
82
68
  obj = PyNumber_Index(obj);
@@ -95,11 +81,7 @@ static bool PyUpb_GetInt64(PyObject* obj, const upb_FieldDef* f, int64_t* val) {
95
81
  return ok;
96
82
  }
97
83
 
98
- static bool PyUpb_GetUint64(PyObject* obj, const upb_FieldDef* f,
99
- uint64_t* val) {
100
- if (PyBool_Check(obj)) {
101
- WarnBool(f);
102
- }
84
+ static bool PyUpb_GetUint64(PyObject* obj, uint64_t* val) {
103
85
  // We require that the value is either an integer or has an __index__
104
86
  // conversion.
105
87
  obj = PyNumber_Index(obj);
@@ -116,9 +98,9 @@ static bool PyUpb_GetUint64(PyObject* obj, const upb_FieldDef* f,
116
98
  return ok;
117
99
  }
118
100
 
119
- static bool PyUpb_GetInt32(PyObject* obj, const upb_FieldDef* f, int32_t* val) {
101
+ static bool PyUpb_GetInt32(PyObject* obj, int32_t* val) {
120
102
  int64_t i64;
121
- if (!PyUpb_GetInt64(obj, f, &i64)) return false;
103
+ if (!PyUpb_GetInt64(obj, &i64)) return false;
122
104
  if (i64 < INT32_MIN || i64 > INT32_MAX) {
123
105
  PyErr_Format(PyExc_ValueError, "Value out of range: %S", obj);
124
106
  return false;
@@ -127,10 +109,9 @@ static bool PyUpb_GetInt32(PyObject* obj, const upb_FieldDef* f, int32_t* val) {
127
109
  return true;
128
110
  }
129
111
 
130
- static bool PyUpb_GetUint32(PyObject* obj, const upb_FieldDef* f,
131
- uint32_t* val) {
112
+ static bool PyUpb_GetUint32(PyObject* obj, uint32_t* val) {
132
113
  uint64_t u64;
133
- if (!PyUpb_GetUint64(obj, f, &u64)) return false;
114
+ if (!PyUpb_GetUint64(obj, &u64)) return false;
134
115
  if (u64 > UINT32_MAX) {
135
116
  PyErr_Format(PyExc_ValueError, "Value out of range: %S", obj);
136
117
  return false;
@@ -183,9 +164,8 @@ const char* upb_FieldDef_TypeString(const upb_FieldDef* f) {
183
164
  UPB_UNREACHABLE();
184
165
  }
185
166
 
186
- static bool PyUpb_PyToUpbEnum(PyObject* obj, const upb_FieldDef* f,
167
+ static bool PyUpb_PyToUpbEnum(PyObject* obj, const upb_EnumDef* e,
187
168
  upb_MessageValue* val) {
188
- const upb_EnumDef* e = upb_FieldDef_EnumSubDef(f);
189
169
  if (PyUnicode_Check(obj)) {
190
170
  Py_ssize_t size;
191
171
  const char* name = PyUnicode_AsUTF8AndSize(obj, &size);
@@ -198,11 +178,8 @@ static bool PyUpb_PyToUpbEnum(PyObject* obj, const upb_FieldDef* f,
198
178
  val->int32_val = upb_EnumValueDef_Number(ev);
199
179
  return true;
200
180
  } else {
201
- if (PyBool_Check(obj)) {
202
- WarnBool(f);
203
- }
204
181
  int32_t i32;
205
- if (!PyUpb_GetInt32(obj, f, &i32)) return false;
182
+ if (!PyUpb_GetInt32(obj, &i32)) return false;
206
183
  if (upb_EnumDef_IsClosed(e) && !upb_EnumDef_CheckNumber(e, i32)) {
207
184
  PyErr_Format(PyExc_ValueError, "invalid enumerator %d", (int)i32);
208
185
  return false;
@@ -261,15 +238,15 @@ bool PyUpb_PyToUpb(PyObject* obj, const upb_FieldDef* f, upb_MessageValue* val,
261
238
  upb_Arena* arena) {
262
239
  switch (upb_FieldDef_CType(f)) {
263
240
  case kUpb_CType_Enum:
264
- return PyUpb_PyToUpbEnum(obj, f, val);
241
+ return PyUpb_PyToUpbEnum(obj, upb_FieldDef_EnumSubDef(f), val);
265
242
  case kUpb_CType_Int32:
266
- return PyUpb_GetInt32(obj, f, &val->int32_val);
243
+ return PyUpb_GetInt32(obj, &val->int32_val);
267
244
  case kUpb_CType_Int64:
268
- return PyUpb_GetInt64(obj, f, &val->int64_val);
245
+ return PyUpb_GetInt64(obj, &val->int64_val);
269
246
  case kUpb_CType_UInt32:
270
- return PyUpb_GetUint32(obj, f, &val->uint32_val);
247
+ return PyUpb_GetUint32(obj, &val->uint32_val);
271
248
  case kUpb_CType_UInt64:
272
- return PyUpb_GetUint64(obj, f, &val->uint64_val);
249
+ return PyUpb_GetUint64(obj, &val->uint64_val);
273
250
  case kUpb_CType_Float:
274
251
  if (!PyFloat_Check(obj) && PyUpb_IsNumpyNdarray(obj, f)) return false;
275
252
  val->float_val = PyFloat_AsDouble(obj);
File without changes
File without changes
File without changes
File without changes
File without changes