Skip to content

Commit d6c2dd7

Browse files
committed
Update contrib/python/types-protobuf to 6.30.2.20250914
commit_hash:bf895b81a06cfcbfdb28f49f5ea24cf015ecf607
1 parent bf8e3da commit d6c2dd7

File tree

5 files changed

+23
-22
lines changed

5 files changed

+23
-22
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.20250822
3+
Version: 6.30.2.20250914
44
Summary: Typing stubs for protobuf
55
License-Expression: Apache-2.0
66
Project-URL: Homepage, https://github.com/python/typeshed
@@ -37,8 +37,8 @@ for more details. The source for this package can be found in the
3737
directory.
3838

3939
This package was tested with the following type checkers:
40-
* [mypy](https://github.com/python/mypy/) 1.17.1
41-
* [pyright](https://github.com/microsoft/pyright) 1.1.404
40+
* [mypy](https://github.com/python/mypy/) 1.18.1
41+
* [pyright](https://github.com/microsoft/pyright) 1.1.405
4242

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

contrib/python/types-protobuf/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ for more details. The source for this package can be found in the
2020
directory.
2121

2222
This package was tested with the following type checkers:
23-
* [mypy](https://github.com/python/mypy/) 1.17.1
24-
* [pyright](https://github.com/microsoft/pyright) 1.1.404
23+
* [mypy](https://github.com/python/mypy/) 1.18.1
24+
* [pyright](https://github.com/microsoft/pyright) 1.1.405
2525

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

contrib/python/types-protobuf/google-stubs/_upb/_message.pyi

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from _typeshed import Incomplete
22
from typing import ClassVar, final
3+
from typing_extensions import Self
34

45
default_pool: DescriptorPool
56

@@ -28,14 +29,14 @@ class Descriptor:
2829
nested_types_by_name: Incomplete
2930
oneofs: Incomplete
3031
oneofs_by_name: Incomplete
31-
def __init__(self, *args, **kwargs) -> None: ... # incomplete
32+
def __new__(cls, *args, **kwargs) -> Self: ... # incomplete
3233
def CopyToProto(self, object, /): ...
3334
def EnumValueName(self, *args, **kwargs): ... # incomplete
3435
def GetOptions(self): ...
3536

3637
@final
3738
class DescriptorPool:
38-
def __init__(self, *args, **kwargs) -> None: ... # incomplete
39+
def __new__(cls, *args, **kwargs) -> Self: ... # incomplete
3940
def Add(self, object, /): ...
4041
def AddSerializedFile(self, object, /): ...
4142
def FindAllExtensions(self, object, /): ...
@@ -62,7 +63,7 @@ class EnumDescriptor:
6263
values: Incomplete
6364
values_by_name: Incomplete
6465
values_by_number: Incomplete
65-
def __init__(self, *args, **kwargs) -> None: ... # incomplete
66+
def __new__(cls, *args, **kwargs) -> Self: ... # incomplete
6667
def CopyToProto(self, object, /): ...
6768
def GetOptions(self): ...
6869

@@ -73,7 +74,7 @@ class EnumValueDescriptor:
7374
name: Incomplete
7475
number: Incomplete
7576
type: Incomplete
76-
def __init__(self, *args, **kwargs) -> None: ... # incomplete
77+
def __new__(cls, *args, **kwargs) -> Self: ... # incomplete
7778
def GetOptions(self): ...
7879

7980
@final
@@ -151,7 +152,7 @@ class FieldDescriptor:
151152
name: Incomplete
152153
number: Incomplete
153154
type: Incomplete
154-
def __init__(self, *args, **kwargs) -> None: ... # incomplete
155+
def __new__(cls, *args, **kwargs) -> Self: ... # incomplete
155156
def GetOptions(self): ...
156157

157158
@final
@@ -167,7 +168,7 @@ class FileDescriptor:
167168
public_dependencies: Incomplete
168169
serialized_pb: Incomplete
169170
services_by_name: Incomplete
170-
def __init__(self, *args, **kwargs) -> None: ... # incomplete
171+
def __new__(cls, *args, **kwargs) -> Self: ... # incomplete
171172
def CopyToProto(self, object, /): ...
172173
def GetOptions(self): ...
173174

@@ -179,7 +180,7 @@ class MapIterator:
179180
@final
180181
class Message:
181182
Extensions: Incomplete
182-
def __init__(self, *args, **kwargs) -> None: ... # incomplete # incomplete
183+
def __init__(self, *args, **kwargs) -> None: ... # incomplete
183184
def ByteSize(self): ...
184185
def Clear(self): ...
185186
def ClearExtension(self, object, /): ...
@@ -225,7 +226,7 @@ class MethodDescriptor:
225226
name: Incomplete
226227
output_type: Incomplete
227228
server_streaming: Incomplete
228-
def __init__(self, *args, **kwargs) -> None: ... # incomplete
229+
def __new__(cls, *args, **kwargs) -> Self: ... # incomplete
229230
def CopyToProto(self, object, /): ...
230231
def GetOptions(self): ...
231232

@@ -237,12 +238,12 @@ class OneofDescriptor:
237238
has_options: Incomplete
238239
index: Incomplete
239240
name: Incomplete
240-
def __init__(self, *args, **kwargs) -> None: ... # incomplete
241+
def __new__(cls, *args, **kwargs) -> Self: ... # incomplete
241242
def GetOptions(self): ...
242243

243244
@final
244245
class RepeatedCompositeContainer:
245-
def __init__(self, *args, **kwargs) -> None: ... # incomplete
246+
def __new__(cls, *args, **kwargs) -> Self: ... # incomplete
246247
def MergeFrom(self, object, /): ...
247248
def add(self, *args, **kwargs): ... # incomplete
248249
def append(self, object, /): ...
@@ -266,7 +267,7 @@ class RepeatedCompositeContainer:
266267

267268
@final
268269
class RepeatedScalarContainer:
269-
def __init__(self, *args, **kwargs) -> None: ... # incomplete
270+
def __new__(cls, *args, **kwargs) -> Self: ... # incomplete
270271
def MergeFrom(self, object, /): ...
271272
def append(self, object, /): ...
272273
def extend(self, object, /): ...
@@ -296,14 +297,14 @@ class ServiceDescriptor:
296297
methods: Incomplete
297298
methods_by_name: Incomplete
298299
name: Incomplete
299-
def __init__(self, *args, **kwargs) -> None: ... # incomplete
300+
def __new__(cls, *args, **kwargs) -> Self: ... # incomplete
300301
def CopyToProto(self, object, /): ...
301302
def FindMethodByName(self, object, /): ...
302303
def GetOptions(self): ...
303304

304305
@final
305306
class UnknownFieldSet:
306-
def __init__(self, *args, **kwargs) -> None: ... # incomplete
307+
def __new__(cls, *args, **kwargs) -> Self: ... # incomplete
307308
def __getitem__(self, index, /): ...
308309
def __len__(self) -> int: ...
309310

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ class Message:
4343
def ClearField(self, field_name: Any) -> None: ...
4444
def WhichOneof(self, oneof_group: Any) -> Any: ...
4545
# TODO: check kwargs
46-
def __init__(self, *args, **kwargs) -> None: ...
46+
def __new__(cls, *args, **kwargs) -> Self: ...

contrib/python/types-protobuf/ya.make

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
PY3_LIBRARY()
44

5-
VERSION(6.30.2.20250822)
5+
VERSION(6.30.2.20250914)
66

77
LICENSE(Apache-2.0)
88

0 commit comments

Comments
 (0)