From 2ae033f468cd4d31d3a27b5c6c0592a0df4a5c4f Mon Sep 17 00:00:00 2001 From: Sujit Nirmal Date: Mon, 19 Oct 2026 19:35:18 +0000 Subject: [PATCH] [grpcio] Add keys, values and items to aio.Metadata --- stubs/grpcio/grpc/aio/__init__.pyi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stubs/grpcio/grpc/aio/__init__.pyi b/stubs/grpcio/grpc/aio/__init__.pyi index d71a3ba2be1b..e8ce7cfaf6a6 100644 --- a/stubs/grpcio/grpc/aio/__init__.pyi +++ b/stubs/grpcio/grpc/aio/__init__.pyi @@ -8,10 +8,13 @@ from collections.abc import ( Callable, Collection, Generator, + ItemsView, Iterable, Iterator, + KeysView, Mapping, Sequence, + ValuesView, ) from concurrent import futures from types import TracebackType @@ -522,6 +525,9 @@ class Metadata(Collection[_MetadatumType]): def __delitem__(self, key: _MetadataKey) -> None: ... def delete_all(self, key: _MetadataKey) -> None: ... def __iter__(self) -> Iterator[_MetadatumType]: ... + def keys(self) -> KeysView[_MetadataKey]: ... + def values(self) -> ValuesView[list[_MetadataValue]]: ... + def items(self) -> ItemsView[_MetadataKey, list[_MetadataValue]]: ... @overload def get(self, key: _MetadataKey, default: None = None) -> _MetadataValue | None: ...