From 7eeab2a23c1b9bf3abd97f380dd560f0175ed822 Mon Sep 17 00:00:00 2001 From: Lidi Zheng Date: Tue, 12 May 2020 12:52:27 -0700 Subject: [PATCH] Describe the expectations of input arguments and return values --- src/python/grpcio/grpc/experimental/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/python/grpcio/grpc/experimental/__init__.py b/src/python/grpcio/grpc/experimental/__init__.py index 083a7638486..eb642900d9c 100644 --- a/src/python/grpcio/grpc/experimental/__init__.py +++ b/src/python/grpcio/grpc/experimental/__init__.py @@ -85,6 +85,14 @@ def wrap_server_method_handler(wrapper, handler): The server implementation requires all server handlers being wrapped as RpcMethodHandler objects. This helper function ease the pain of writing server handler wrappers. + + Args: + wrapper: A wrapper function that takes in a method handler behavior + (the actual function) and returns a wrapped function. + handler: A RpcMethodHandler object to be wrapped. + + Returns: + A newly created RpcMethodHandler. """ if not handler: return None