diff options
author | Masood Malekghassemi <soltanmm@users.noreply.github.com> | 2015-11-17 13:49:33 -0800 |
---|---|---|
committer | Masood Malekghassemi <soltanmm@users.noreply.github.com> | 2015-11-17 13:49:33 -0800 |
commit | 7fdfe1afd8e4d97c0bf7f924bf9941b7695c1f1a (patch) | |
tree | 80adf2a0892da51a6366124212c59b991ad31c19 /src/python/grpcio/grpc/beta | |
parent | 36297accb650f8ce570bdc0553f66f704194b242 (diff) |
Bandaid over differences in the C API for Python credentials
Diffstat (limited to 'src/python/grpcio/grpc/beta')
-rw-r--r-- | src/python/grpcio/grpc/beta/interfaces.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/python/grpcio/grpc/beta/interfaces.py b/src/python/grpcio/grpc/beta/interfaces.py index 07c8618f70..d4ca56500f 100644 --- a/src/python/grpcio/grpc/beta/interfaces.py +++ b/src/python/grpcio/grpc/beta/interfaces.py @@ -100,8 +100,11 @@ def grpc_call_options(disable_compression=False, credentials=None): disable_compression: A boolean indicating whether or not compression should be disabled for the request object of the RPC. Only valid for request-unary RPCs. - credentials: A ClientCredentials object to use for the invoked RPC. + credentials: Reserved for gRPC per-call credentials. The type for this does + not exist yet at the Python level. """ + if credentials is not None: + raise ValueError('`credentials` is a reserved argument') return GRPCCallOptions(disable_compression, None, credentials) |