summaryrefslogtreecommitdiffstats
path: root/contrib/python
diff options
context:
space:
mode:
authorrobot-contrib <[email protected]>2026-06-04 11:12:44 +0300
committerrobot-contrib <[email protected]>2026-06-04 11:41:49 +0300
commitdce1488196bbfd6f579531ffef4c32c8c9f48077 (patch)
treede5f165b55281de1a7c8ac2972f8ea698b860d7a /contrib/python
parent9ee6741960f54ac0bc2ba4512aa207e870af4de2 (diff)
Update contrib/python/types-protobuf to 7.34.1.20260518
commit_hash:3f5138bf4cd073b0765acd49bcdca8c35281757b
Diffstat (limited to 'contrib/python')
-rw-r--r--contrib/python/types-protobuf/.dist-info/METADATA8
-rw-r--r--contrib/python/types-protobuf/README.md6
-rw-r--r--contrib/python/types-protobuf/google-stubs/protobuf/internal/containers.pyi10
-rw-r--r--contrib/python/types-protobuf/ya.make2
4 files changed, 18 insertions, 8 deletions
diff --git a/contrib/python/types-protobuf/.dist-info/METADATA b/contrib/python/types-protobuf/.dist-info/METADATA
index 654876532f5..fceb7166d1b 100644
--- a/contrib/python/types-protobuf/.dist-info/METADATA
+++ b/contrib/python/types-protobuf/.dist-info/METADATA
@@ -1,6 +1,6 @@
Metadata-Version: 2.4
Name: types-protobuf
-Version: 7.34.1.20260508
+Version: 7.34.1.20260518
Summary: Typing stubs for protobuf
License-Expression: Apache-2.0
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
directory.
This package was tested with the following type checkers:
-* [mypy](https://github.com/python/mypy/) 1.20.0
-* [pyright](https://github.com/microsoft/pyright) 1.1.408
+* [mypy](https://github.com/python/mypy/) 2.1.0
+* [pyright](https://github.com/microsoft/pyright) 1.1.409
It was generated from typeshed commit
-[`a7f0a8286aaf594602b81bef79c77175fcf9ceda`](https://github.com/python/typeshed/commit/a7f0a8286aaf594602b81bef79c77175fcf9ceda).
+[`3402466d17144ed7edfc92940c6973167ba285af`](https://github.com/python/typeshed/commit/3402466d17144ed7edfc92940c6973167ba285af).
diff --git a/contrib/python/types-protobuf/README.md b/contrib/python/types-protobuf/README.md
index 8448b9ae958..98c4b361b82 100644
--- a/contrib/python/types-protobuf/README.md
+++ b/contrib/python/types-protobuf/README.md
@@ -20,8 +20,8 @@ for more details. The source for this package can be found in the
directory.
This package was tested with the following type checkers:
-* [mypy](https://github.com/python/mypy/) 1.20.0
-* [pyright](https://github.com/microsoft/pyright) 1.1.408
+* [mypy](https://github.com/python/mypy/) 2.1.0
+* [pyright](https://github.com/microsoft/pyright) 1.1.409
It was generated from typeshed commit
-[`a7f0a8286aaf594602b81bef79c77175fcf9ceda`](https://github.com/python/typeshed/commit/a7f0a8286aaf594602b81bef79c77175fcf9ceda). \ No newline at end of file
+[`3402466d17144ed7edfc92940c6973167ba285af`](https://github.com/python/typeshed/commit/3402466d17144ed7edfc92940c6973167ba285af). \ No newline at end of file
diff --git a/contrib/python/types-protobuf/google-stubs/protobuf/internal/containers.pyi b/contrib/python/types-protobuf/google-stubs/protobuf/internal/containers.pyi
index 37f681eb2d2..bb48c5bb6dd 100644
--- a/contrib/python/types-protobuf/google-stubs/protobuf/internal/containers.pyi
+++ b/contrib/python/types-protobuf/google-stubs/protobuf/internal/containers.pyi
@@ -19,10 +19,12 @@ class _ValueChecker(Protocol[_T]):
class BaseContainer(Sequence[_T]):
__slots__ = ["_message_listener", "_values"]
def __init__(self, message_listener: MessageListener) -> None: ...
+
@overload
def __getitem__(self, key: SupportsIndex) -> _T: ...
@overload
def __getitem__(self, key: slice) -> list[_T]: ...
+
def __len__(self) -> int: ...
def __ne__(self, other: object) -> bool: ...
def __hash__(self) -> int: ...
@@ -41,10 +43,12 @@ class RepeatedScalarFieldContainer(BaseContainer[_ScalarV], MutableSequence[_Sca
def MergeFrom(self, other: RepeatedScalarFieldContainer[_ScalarV] | Iterable[_ScalarV]) -> None: ...
def remove(self, elem: _ScalarV) -> None: ...
def pop(self, key: int = -1) -> _ScalarV: ...
+
@overload
def __setitem__(self, key: int, value: _ScalarV) -> None: ...
@overload
def __setitem__(self, key: slice, value: Iterable[_ScalarV]) -> None: ...
+
def __delitem__(self, key: int | slice) -> None: ...
def __eq__(self, other: object) -> bool: ...
def __deepcopy__(self, unused_memo: Any = None) -> RepeatedScalarFieldContainer[_ScalarV]: ...
@@ -60,10 +64,12 @@ class RepeatedCompositeFieldContainer(BaseContainer[_MessageV], MutableSequence[
def MergeFrom(self, other: RepeatedCompositeFieldContainer[_MessageV] | Iterable[_MessageV]) -> None: ...
def remove(self, elem: _MessageV) -> None: ...
def pop(self, key: int = -1) -> _MessageV: ...
+
@overload
def __setitem__(self, key: int, value: _MessageV) -> None: ...
@overload
def __setitem__(self, key: slice, value: Iterable[_MessageV]) -> None: ...
+
def __delitem__(self, key: int | slice) -> None: ...
def __eq__(self, other: object) -> bool: ...
@@ -77,12 +83,14 @@ class ScalarMap(MutableMapping[_K, _ScalarV]):
entry_descriptor: Descriptor,
) -> None: ...
def __getitem__(self, key: _K) -> _ScalarV: ...
+
@overload
def get(self, key: _K, default: None = None) -> _ScalarV | None: ...
@overload
def get(self, key: _K, default: _ScalarV) -> _ScalarV: ...
@overload
def get(self, key: _K, default: _T) -> _ScalarV | _T: ...
+
def __setitem__(self, key: _K, value: _ScalarV) -> None: ...
def __delitem__(self, key: _K) -> None: ...
def __len__(self) -> int: ...
@@ -105,12 +113,14 @@ class MessageMap(MutableMapping[_K, _MessageV]):
) -> None: ...
def __getitem__(self, key: _K) -> _MessageV: ...
def get_or_create(self, key: _K) -> _MessageV: ...
+
@overload
def get(self, key: _K, default: None = None) -> _MessageV | None: ...
@overload
def get(self, key: _K, default: _MessageV) -> _MessageV: ...
@overload
def get(self, key: _K, default: _T) -> _MessageV | _T: ...
+
def __setitem__(self, key: _K, value: _MessageV) -> None: ...
def __delitem__(self, key: _K) -> None: ...
def __len__(self) -> int: ...
diff --git a/contrib/python/types-protobuf/ya.make b/contrib/python/types-protobuf/ya.make
index e5d82f6e5c5..275d71caece 100644
--- a/contrib/python/types-protobuf/ya.make
+++ b/contrib/python/types-protobuf/ya.make
@@ -2,7 +2,7 @@
PY3_LIBRARY()
-VERSION(7.34.1.20260508)
+VERSION(7.34.1.20260518)
LICENSE(Apache-2.0)