Merge pull request #22405 from lidizheng/annotate-context-manager

Annotate channel context manager methods to make pytype happy
pull/22414/head
Lidi Zheng 5 years ago committed by GitHub
commit 69fa971183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      src/python/grpcio/grpc/__init__.py

@ -1076,6 +1076,14 @@ class Channel(six.with_metaclass(abc.ABCMeta)):
"""
raise NotImplementedError()
def __enter__(self):
"""Enters the runtime context related to the channel object."""
raise NotImplementedError()
def __exit__(self, exc_type, exc_val, exc_tb):
"""Exits the runtime context related to the channel object."""
raise NotImplementedError()
########################## Service-Side Context ##############################

Loading…
Cancel
Save