Annotate channel context manager methods to make pytype happy

pull/22405/head
Lidi Zheng 5 years ago
parent dd165a3d79
commit 158a68f4f0
  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