Explorar el Código

Revert "Remove circular dependency"

This reverts commit dc2b02aad15c66c52e07abe5fdc85be92e13b867.
Lidi Zheng hace 5 años
padre
commit
3a6d73f808
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/python/grpcio_status/grpc_status/_async.py

+ 3 - 1
src/python/grpcio_status/grpc_status/_async.py

@@ -13,12 +13,14 @@
 # limitations under the License.
 """Reference implementation for status mapping in gRPC Python."""
 
+from grpc.experimental import aio
+
 from google.rpc import status_pb2
 
 from ._common import code_to_grpc_status_code, GRPC_DETAILS_METADATA_KEY
 
 
-async def from_call(call):
+async def from_call(call: aio.Call):
     """Returns a google.rpc.status.Status message from a given grpc.aio.Call.
 
     This is an EXPERIMENTAL API.