Automated change: Fix sanity tests
diff --git a/src/python/grpcio/grpc/aio/_base_server.py b/src/python/grpcio/grpc/aio/_base_server.py index de3a1b9..c87b4de 100644 --- a/src/python/grpcio/grpc/aio/_base_server.py +++ b/src/python/grpcio/grpc/aio/_base_server.py
@@ -139,7 +139,9 @@ """ def add_registered_method_handlers( # noqa: B027 - self, service_name: str, method_handlers: Mapping[str, grpc.RpcMethodHandler] + self, + service_name: str, + method_handlers: Mapping[str, grpc.RpcMethodHandler], ): """Registers GenericRpcHandlers with this Server. @@ -348,7 +350,7 @@ """ raise NotImplementedError() - def details(self): # pyright: ignore[reportUnknownParameterType] + def details(self): # pyright: ignore[reportUnknownParameterType] """Accesses the value to be used as detail string upon RPC completion. This is an EXPERIMENTAL API.
diff --git a/src/python/grpcio/grpc/aio/_call.py b/src/python/grpcio/grpc/aio/_call.py index e694ce1..725bb9d 100644 --- a/src/python/grpcio/grpc/aio/_call.py +++ b/src/python/grpcio/grpc/aio/_call.py
@@ -182,7 +182,9 @@ ) -> AioRpcError: return AioRpcError( _common.CYGRPC_STATUS_CODE_TO_STATUS_CODE[status.code()], - Metadata._create(initial_metadata), # pyright: ignore[reportPrivateUsage] + Metadata._create( + initial_metadata + ), # pyright: ignore[reportPrivateUsage] Metadata.from_tuple(status.trailing_metadata()), details=status.details(), debug_error_string=status.debug_error_string(), @@ -456,7 +458,9 @@ rpc_error, ) return - elif isinstance(request_iterator, Iterable): # pyright: ignore[reportUnnecessaryIsInstance] + elif isinstance( + request_iterator, Iterable + ): # pyright: ignore[reportUnnecessaryIsInstance] for request in request_iterator: try: await self._write(request)
diff --git a/src/python/grpcio/grpc/aio/_metadata.py b/src/python/grpcio/grpc/aio/_metadata.py index 15989a3..8872410 100644 --- a/src/python/grpcio/grpc/aio/_metadata.py +++ b/src/python/grpcio/grpc/aio/_metadata.py
@@ -46,6 +46,7 @@ * Supports an immutable view of the data * Allows partial mutation on the data without recreating the new object from scratch. """ + _metadata: OrderedDict[MetadataKey, List[MetadataValue]] def __init__(self, *args: MetadatumType) -> None: