瀏覽代碼

Remove circular dependency

Lidi Zheng 5 年之前
父節點
當前提交
ca6e62998c
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      src/python/grpcio_status/grpc_status/_async.py

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

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