Eliminate unreachable suppression

pull/15113/head
Mehrdad Afshari 7 years ago
parent 35c7e8c833
commit ce8e2fcd16
  1. 1
      .pylintrc-tests
  2. 2
      src/python/grpcio_tests/tests/testing/_server_application.py
  3. 2
      src/python/grpcio_tests/tests/unit/beta/_beta_features_test.py

@ -54,7 +54,6 @@ disable=
unnecessary-lambda,
wildcard-import,
line-too-long,
unreachable,
wrong-import-position,
wrong-import-order,
non-iterator-returned,

@ -38,7 +38,7 @@ class FirstServiceServicer(services_pb2_grpc.FirstServiceServicer):
context.set_code(grpc.StatusCode.INVALID_ARGUMENT)
context.set_details('Something is wrong with your request!')
return
yield services_pb2.Strange()
yield services_pb2.Strange() # pylint: disable=unreachable
def StreUn(self, request_iterator, context):
context.send_initial_metadata(((

@ -65,7 +65,7 @@ class _Servicer(object):
self._serviced = True
self._condition.notify_all()
return
yield
yield # pylint: disable=unreachable
def stream_unary(self, request_iterator, context):
for request in request_iterator:

Loading…
Cancel
Save