Skip to content

Commit b38b2a7

Browse files
authored
[grpcio] Add keys, values and items to aio.Metadata (#16566)
1 parent b7e10f2 commit b38b2a7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎stubs/grpcio/grpc/aio/__init__.pyi‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ from collections.abc import (
88
Callable,
99
Collection,
1010
Generator,
11+
ItemsView,
1112
Iterable,
1213
Iterator,
14+
KeysView,
1315
Mapping,
1416
Sequence,
17+
ValuesView,
1518
)
1619
from concurrent import futures
1720
from types import TracebackType
@@ -522,6 +525,9 @@ class Metadata(Collection[_MetadatumType]):
522525
def __delitem__(self, key: _MetadataKey) -> None: ...
523526
def delete_all(self, key: _MetadataKey) -> None: ...
524527
def __iter__(self) -> Iterator[_MetadatumType]: ...
528+
def keys(self) -> KeysView[_MetadataKey]: ...
529+
def values(self) -> ValuesView[list[_MetadataValue]]: ...
530+
def items(self) -> ItemsView[_MetadataKey, list[_MetadataValue]]: ...
525531

526532
@overload
527533
def get(self, key: _MetadataKey, default: None = None) -> _MetadataValue | None: ...

0 commit comments

Comments
 (0)