Skip to content

Commit 6f9e522

Browse files
committed
Update contrib/python/types-protobuf to 6.32.1.20250918
commit_hash:d16f14cd17c09b815015fb2d2313fdecf2c588d0
1 parent fc86d46 commit 6f9e522

File tree

9 files changed

+186
-20
lines changed

9 files changed

+186
-20
lines changed

contrib/python/types-protobuf/.dist-info/METADATA

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 2.4
22
Name: types-protobuf
3-
Version: 6.30.2.20250914
3+
Version: 6.32.1.20250918
44
Summary: Typing stubs for protobuf
55
License-Expression: Apache-2.0
66
Project-URL: Homepage, https://github.com/python/typeshed
@@ -21,9 +21,9 @@ This is a [type stub package](https://typing.python.org/en/latest/tutorials/exte
2121
for the [`protobuf`](https://github.com/protocolbuffers/protobuf) package. It can be used by type checkers
2222
to check code that uses `protobuf`. This version of
2323
`types-protobuf` aims to provide accurate annotations for
24-
`protobuf~=6.30.2`.
24+
`protobuf~=6.32.1`.
2525

26-
Partially generated using [mypy-protobuf==3.6.0](https://github.com/nipunn1313/mypy-protobuf/tree/v3.6.0) and libprotoc 29.0 on [protobuf v30.2](https://github.com/protocolbuffers/protobuf/releases/tag/v30.2) (python `protobuf==6.30.2`).
26+
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`).
2727

2828
This stub package is marked as [partial](https://typing.python.org/en/latest/spec/distributing.html#partial-stub-packages).
2929
If you find that annotations are missing, feel free to contribute and help complete them.
@@ -41,4 +41,4 @@ This package was tested with the following type checkers:
4141
* [pyright](https://github.com/microsoft/pyright) 1.1.405
4242

4343
It was generated from typeshed commit
44-
[`4b0623f4fb2c4e5a04a0244e1592b1481a26e47e`](https://github.com/python/typeshed/commit/4b0623f4fb2c4e5a04a0244e1592b1481a26e47e).
44+
[`add4e85823fe0a7e45c51d6d4f3ef46041593bc8`](https://github.com/python/typeshed/commit/add4e85823fe0a7e45c51d6d4f3ef46041593bc8).

contrib/python/types-protobuf/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ This is a [type stub package](https://typing.python.org/en/latest/tutorials/exte
44
for the [`protobuf`](https://github.com/protocolbuffers/protobuf) package. It can be used by type checkers
55
to check code that uses `protobuf`. This version of
66
`types-protobuf` aims to provide accurate annotations for
7-
`protobuf~=6.30.2`.
7+
`protobuf~=6.32.1`.
88

9-
Partially generated using [mypy-protobuf==3.6.0](https://github.com/nipunn1313/mypy-protobuf/tree/v3.6.0) and libprotoc 29.0 on [protobuf v30.2](https://github.com/protocolbuffers/protobuf/releases/tag/v30.2) (python `protobuf==6.30.2`).
9+
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`).
1010

1111
This stub package is marked as [partial](https://typing.python.org/en/latest/spec/distributing.html#partial-stub-packages).
1212
If you find that annotations are missing, feel free to contribute and help complete them.
@@ -24,4 +24,4 @@ This package was tested with the following type checkers:
2424
* [pyright](https://github.com/microsoft/pyright) 1.1.405
2525

2626
It was generated from typeshed commit
27-
[`4b0623f4fb2c4e5a04a0244e1592b1481a26e47e`](https://github.com/python/typeshed/commit/4b0623f4fb2c4e5a04a0244e1592b1481a26e47e).
27+
[`add4e85823fe0a7e45c51d6d4f3ef46041593bc8`](https://github.com/python/typeshed/commit/add4e85823fe0a7e45c51d6d4f3ef46041593bc8).

contrib/python/types-protobuf/google-stubs/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.30.2"
3+
version = "~=6.32.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 29.0 on [protobuf v30.2](https://github.com/protocolbuffers/protobuf/releases/tag/v30.2) (python `protobuf==6.30.2`)."
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`)."
66
partial_stub = true
77

88
[tool.stubtest]

contrib/python/types-protobuf/google-stubs/protobuf/api_pb2.pyi

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ class Api(google.protobuf.message.Message):
5555
sometimes simply referred to as "APIs" in other contexts, such as the name of
5656
this message itself. See https://cloud.google.com/apis/design/glossary for
5757
detailed terminology.
58+
59+
New usages of this message as an alternative to ServiceDescriptorProto are
60+
strongly discouraged. This message does not reliability preserve all
61+
information necessary to model the schema and preserve semantics. Instead
62+
make use of FileDescriptorSet which preserves the necessary information.
5863
"""
5964

6065
DESCRIPTOR: google.protobuf.descriptor.Descriptor
@@ -66,6 +71,7 @@ class Api(google.protobuf.message.Message):
6671
SOURCE_CONTEXT_FIELD_NUMBER: builtins.int
6772
MIXINS_FIELD_NUMBER: builtins.int
6873
SYNTAX_FIELD_NUMBER: builtins.int
74+
EDITION_FIELD_NUMBER: builtins.int
6975
name: builtins.str
7076
"""The fully qualified name of this interface, including package name
7177
followed by the interface's simple name.
@@ -93,6 +99,8 @@ class Api(google.protobuf.message.Message):
9399
"""
94100
syntax: google.protobuf.type_pb2.Syntax.ValueType
95101
"""The source syntax of the service."""
102+
edition: builtins.str
103+
"""The source edition string, only valid when syntax is SYNTAX_EDITIONS."""
96104
@property
97105
def methods(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Method]:
98106
"""The methods of this interface, in unspecified order."""
@@ -121,11 +129,14 @@ class Api(google.protobuf.message.Message):
121129
source_context: google.protobuf.source_context_pb2.SourceContext | None = ...,
122130
mixins: collections.abc.Iterable[global___Mixin] | None = ...,
123131
syntax: google.protobuf.type_pb2.Syntax.ValueType | None = ...,
132+
edition: builtins.str | None = ...,
124133
) -> None: ...
125134
def HasField(self, field_name: typing.Literal["source_context", b"source_context"]) -> builtins.bool: ...
126135
def ClearField(
127136
self,
128137
field_name: typing.Literal[
138+
"edition",
139+
b"edition",
129140
"methods",
130141
b"methods",
131142
"mixins",
@@ -147,7 +158,13 @@ global___Api = Api
147158

148159
@typing.final
149160
class Method(google.protobuf.message.Message):
150-
"""Method represents a method of an API interface."""
161+
"""Method represents a method of an API interface.
162+
163+
New usages of this message as an alternative to MethodDescriptorProto are
164+
strongly discouraged. This message does not reliability preserve all
165+
information necessary to model the schema and preserve semantics. Instead
166+
make use of FileDescriptorSet which preserves the necessary information.
167+
"""
151168

152169
DESCRIPTOR: google.protobuf.descriptor.Descriptor
153170

@@ -158,6 +175,7 @@ class Method(google.protobuf.message.Message):
158175
RESPONSE_STREAMING_FIELD_NUMBER: builtins.int
159176
OPTIONS_FIELD_NUMBER: builtins.int
160177
SYNTAX_FIELD_NUMBER: builtins.int
178+
EDITION_FIELD_NUMBER: builtins.int
161179
name: builtins.str
162180
"""The simple name of this method."""
163181
request_type_url: builtins.str
@@ -169,7 +187,17 @@ class Method(google.protobuf.message.Message):
169187
response_streaming: builtins.bool
170188
"""If true, the response is streamed."""
171189
syntax: google.protobuf.type_pb2.Syntax.ValueType
172-
"""The source syntax of this method."""
190+
"""The source syntax of this method.
191+
192+
This field should be ignored, instead the syntax should be inherited from
193+
Api. This is similar to Field and EnumValue.
194+
"""
195+
edition: builtins.str
196+
"""The source edition string, only valid when syntax is SYNTAX_EDITIONS.
197+
198+
This field should be ignored, instead the edition should be inherited from
199+
Api. This is similar to Field and EnumValue.
200+
"""
173201
@property
174202
def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.type_pb2.Option]:
175203
"""Any metadata attached to the method."""
@@ -184,10 +212,13 @@ class Method(google.protobuf.message.Message):
184212
response_streaming: builtins.bool | None = ...,
185213
options: collections.abc.Iterable[google.protobuf.type_pb2.Option] | None = ...,
186214
syntax: google.protobuf.type_pb2.Syntax.ValueType | None = ...,
215+
edition: builtins.str | None = ...,
187216
) -> None: ...
188217
def ClearField(
189218
self,
190219
field_name: typing.Literal[
220+
"edition",
221+
b"edition",
191222
"name",
192223
b"name",
193224
"options",

contrib/python/types-protobuf/google-stubs/protobuf/descriptor.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ class FieldDescriptor(DescriptorBase):
156156
@property
157157
def label(self): ...
158158
@property
159+
def is_required(self) -> bool: ...
160+
@property
161+
def is_repeated(self) -> bool: ...
162+
@property
159163
def camelcase_name(self) -> str: ...
160164
@property
161165
def has_presence(self) -> bool: ...

0 commit comments

Comments
 (0)