diff options
| author | robot-contrib <[email protected]> | 2025-07-18 09:09:37 +0300 |
|---|---|---|
| committer | robot-contrib <[email protected]> | 2025-07-18 09:26:10 +0300 |
| commit | e0b0dd77ded87e2e73d6a47ddea56ee26f452b6d (patch) | |
| tree | 8af9cd8ee3e3eef7f940b27bbf99a0b33ae82dd9 /contrib/python/types-protobuf/google-stubs | |
| parent | b27290b9f146a42ce239e15c67cf203f4a151aa7 (diff) | |
Update contrib/python/types-protobuf to 6.30.2.20250703
commit_hash:d2b0fc19d1e1d971ea1e3c0a252c23f2642d25b5
Diffstat (limited to 'contrib/python/types-protobuf/google-stubs')
| -rw-r--r-- | contrib/python/types-protobuf/google-stubs/protobuf/internal/containers.pyi | 8 |
1 files changed, 6 insertions, 2 deletions
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 75261371607..1431c3b1379 100644 --- a/contrib/python/types-protobuf/google-stubs/protobuf/internal/containers.pyi +++ b/contrib/python/types-protobuf/google-stubs/protobuf/internal/containers.pyi @@ -72,7 +72,9 @@ class ScalarMap(MutableMapping[_K, _ScalarV]): @overload def get(self, key: _K, default: None = None) -> _ScalarV | None: ... @overload - def get(self, key: _K, default: _ScalarV | _T) -> _ScalarV | _T: ... + def get(self, key: _K, default: _ScalarV) -> _ScalarV: ... + @overload + def get(self, key: _K, default: _T) -> _ScalarV | _T: ... def setdefault(self, key: _K, value: _ScalarV | None = None) -> _ScalarV: ... def MergeFrom(self, other: Self): ... def InvalidateIterators(self) -> None: ... @@ -95,7 +97,9 @@ class MessageMap(MutableMapping[_K, _MessageV]): @overload def get(self, key: _K, default: None = None) -> _MessageV | None: ... @overload - def get(self, key: _K, default: _MessageV | _T) -> _MessageV | _T: ... + def get(self, key: _K, default: _MessageV) -> _MessageV: ... + @overload + def get(self, key: _K, default: _T) -> _MessageV | _T: ... def get_or_create(self, key: _K) -> _MessageV: ... def setdefault(self, key: _K, value: _MessageV | None = None) -> _MessageV: ... def MergeFrom(self, other: Self): ... |
