Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
99f20dbe
Commit
99f20dbe
authored
7 years ago
by
Noah Eisen
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #11035 from ncteisen/sanity
Regain Sanity
parents
ca754964
fe9da0b8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/python/grpcio/grpc/__init__.py
+15
-12
15 additions, 12 deletions
src/python/grpcio/grpc/__init__.py
with
15 additions
and
12 deletions
src/python/grpcio/grpc/__init__.py
+
15
−
12
View file @
99f20dbe
...
@@ -66,7 +66,8 @@ class Future(six.with_metaclass(abc.ABCMeta)):
...
@@ -66,7 +66,8 @@ class Future(six.with_metaclass(abc.ABCMeta)):
Returns False under all other circumstances, for example:
Returns False under all other circumstances, for example:
1. computation has begun and could not be canceled.
1. computation has begun and could not be canceled.
2. computation has finished
2. computation has finished
3. computation is scheduled for execution and it is impossible to determine its state without blocking.
3. computation is scheduled for execution and it is impossible to
determine its state without blocking.
"""
"""
raise
NotImplementedError
()
raise
NotImplementedError
()
...
@@ -123,8 +124,8 @@ class Future(six.with_metaclass(abc.ABCMeta)):
...
@@ -123,8 +124,8 @@ class Future(six.with_metaclass(abc.ABCMeta)):
Args:
Args:
timeout: The length of time in seconds to wait for the computation to
timeout: The length of time in seconds to wait for the computation to
finish or be cancelled. If None, the call will block until the
computations
'
s
finish or be cancelled. If None, the call will block until the
termination.
computations
'
s
termination.
Returns:
Returns:
The return value of the computation.
The return value of the computation.
...
@@ -146,8 +147,8 @@ class Future(six.with_metaclass(abc.ABCMeta)):
...
@@ -146,8 +147,8 @@ class Future(six.with_metaclass(abc.ABCMeta)):
Args:
Args:
timeout: The length of time in seconds to wait for the computation to
timeout: The length of time in seconds to wait for the computation to
terminate or be cancelled. If None, the call will block until the
computations
'
s
terminate or be cancelled. If None, the call will block until the
termination.
computations
'
s
termination.
Returns:
Returns:
The exception raised by the computation, or None if the computation did
The exception raised by the computation, or None if the computation did
...
@@ -363,9 +364,9 @@ class ChannelCredentials(object):
...
@@ -363,9 +364,9 @@ class ChannelCredentials(object):
"""
An encapsulation of the data required to create a secure Channel.
"""
An encapsulation of the data required to create a secure Channel.
This class has no supported interface - it exists to define the type of its
This class has no supported interface - it exists to define the type of its
instances and its instances exist to be passed to other functions. For
example,
instances and its instances exist to be passed to other functions. For
ssl_channel_credentials returns an instance, and secure_channel
consumes an
example,
ssl_channel_credentials returns an instance, and secure_channel
instance of this class.
consumes an
instance of this class.
"""
"""
def
__init__
(
self
,
credentials
):
def
__init__
(
self
,
credentials
):
...
@@ -373,7 +374,8 @@ class ChannelCredentials(object):
...
@@ -373,7 +374,8 @@ class ChannelCredentials(object):
class
CallCredentials
(
object
):
class
CallCredentials
(
object
):
"""
An encapsulation of the data required to assert an identity over a channel.
"""
An encapsulation of the data required to assert an identity over a
channel.
A CallCredentials may be composed with ChannelCredentials to always assert
A CallCredentials may be composed with ChannelCredentials to always assert
identity for every call over that Channel.
identity for every call over that Channel.
...
@@ -399,7 +401,8 @@ class AuthMetadataPluginCallback(six.with_metaclass(abc.ABCMeta)):
...
@@ -399,7 +401,8 @@ class AuthMetadataPluginCallback(six.with_metaclass(abc.ABCMeta)):
"""
Callback object received by a metadata plugin.
"""
"""
Callback object received by a metadata plugin.
"""
def
__call__
(
self
,
metadata
,
error
):
def
__call__
(
self
,
metadata
,
error
):
"""
Inform the gRPC runtime of the metadata to construct a CallCredentials.
"""
Inform the gRPC runtime of the metadata to construct a
CallCredentials.
Args:
Args:
metadata: The :term:`metadata` used to construct the CallCredentials.
metadata: The :term:`metadata` used to construct the CallCredentials.
...
@@ -879,8 +882,8 @@ class GenericRpcHandler(six.with_metaclass(abc.ABCMeta)):
...
@@ -879,8 +882,8 @@ class GenericRpcHandler(six.with_metaclass(abc.ABCMeta)):
handler_call_details: A HandlerCallDetails describing the RPC.
handler_call_details: A HandlerCallDetails describing the RPC.
Returns:
Returns:
An RpcMethodHandler with which the RPC may be serviced if the
implementation
An RpcMethodHandler with which the RPC may be serviced if the
chooses to service this RPC, or None otherwise.
implementation
chooses to service this RPC, or None otherwise.
"""
"""
raise
NotImplementedError
()
raise
NotImplementedError
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment