Eliminate unreachable suppression
This commit is contained in:
parent
35c7e8c833
commit
ce8e2fcd16
|
|
@ -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…
Reference in New Issue