Skip to content

Commit 719f4cf

Browse files
[protobuf] Bump to 7.34.1 and improve type coverage
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
1 parent e78872c commit 719f4cf

35 files changed

+769
-458
lines changed

stubs/protobuf/@tests/stubtest_allowlist.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,17 @@ google.protobuf.descriptor.ServiceDescriptor.__new__
2626
# It's a hack - just allow it.
2727
google.protobuf.internal.containers.BaseContainer.__hash__
2828

29-
# Metaclass differs:
30-
google.protobuf.descriptor.OneofDescriptor
31-
3229
# Runtime does not have __iter__ (yet...): hack in spirit of https://github.com/python/typeshed/issues/7813
3330
google.protobuf.internal.well_known_types.ListValue.__iter__
3431

3532
# It's a list at runtime, but if we do that pyright complains about incompatible overrides
3633
# in subclasses that use a tuple for __slots__.
3734
google.protobuf.message.Message.__slots__
35+
36+
# Thin wrapper around the C extension metaclass; users should use
37+
# google.protobuf.reflection.GeneratedProtocolMessageType instead
38+
google.protobuf.pyext
39+
google.protobuf.pyext.cpp_message
40+
41+
# Package with only __init__.py, no public API
42+
google.protobuf.testdata

stubs/protobuf/METADATA.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Using an exact number in the specifier for scripts/sync_protobuf/google_protobuf.py
22
# When updating, also re-run the script
3-
version = "~=6.32.1"
3+
version = "~=7.34.1"
44
upstream_repository = "https://github.com/protocolbuffers/protobuf"
5-
extra_description = "Partially generated using [mypy-protobuf==3.6.0](https://github.com/nipunn1313/mypy-protobuf/tree/v3.6.0) and libprotoc 31.1 on [protobuf v32.1](https://github.com/protocolbuffers/protobuf/releases/tag/v32.1) (python `protobuf==6.32.1`)."
5+
extra_description = "Partially generated using [mypy-protobuf==3.6.0](https://github.com/nipunn1313/mypy-protobuf/tree/v3.6.0) and libprotoc 34.1 on [protobuf v34.1](https://github.com/protocolbuffers/protobuf/releases/tag/v34.1) (python `protobuf==7.34.1`)."
66
partial_stub = true
77

88
[tool.stubtest]

0 commit comments

Comments
 (0)