Apply formatting & fix typing

pull/23045/head
Mariano Anaya 5 years ago
parent 7b3430ef3e
commit 6e83eb79f4
  1. 6
      src/python/grpcio/grpc/experimental/aio/_call.py
  2. 4
      src/python/grpcio_tests/tests_aio/unit/metadata_test.py

@ -26,9 +26,9 @@ from grpc._cython import cygrpc
from . import _base_call from . import _base_call
from ._metadata import Metadata from ._metadata import Metadata
from ._typing import (DeserializingFunction, DoneCallbackType, from ._typing import (DeserializingFunction, DoneCallbackType, MetadatumType,
MetadatumType, RequestIterableType, RequestType, RequestIterableType, RequestType, ResponseType,
ResponseType, SerializingFunction) SerializingFunction)
__all__ = 'AioRpcError', 'Call', 'UnaryUnaryCall', 'UnaryStreamCall' __all__ = 'AioRpcError', 'Call', 'UnaryUnaryCall', 'UnaryStreamCall'

@ -212,8 +212,8 @@ class TestMetadata(AioTestBase):
async def test_from_client_to_server_with_list(self): async def test_from_client_to_server_with_list(self):
multicallable = self._client.unary_unary(_TEST_CLIENT_TO_SERVER) multicallable = self._client.unary_unary(_TEST_CLIENT_TO_SERVER)
call = multicallable(_REQUEST, call = multicallable(
metadata=list(_INITIAL_METADATA_FROM_CLIENT_TO_SERVER)) _REQUEST, metadata=list(_INITIAL_METADATA_FROM_CLIENT_TO_SERVER)) # pytype: disable=wrong-arg-types
self.assertEqual(_RESPONSE, await call) self.assertEqual(_RESPONSE, await call)
self.assertEqual(grpc.StatusCode.OK, await call.code()) self.assertEqual(grpc.StatusCode.OK, await call.code())

Loading…
Cancel
Save