Skip to content

Commit

Permalink
Fix lint for grpc instrumentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Jul 3, 2024
1 parent 46418b9 commit 4a72ef6
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def __init__(self, channel):
Args:
channel: A grpc.Channel.
"""
# pylint: disable=invalid-name
self.SimpleMethod = channel.unary_unary(
"/GRPCTestServer/SimpleMethod",
request_serializer=test__server__pb2.Request.SerializeToString,
Expand All @@ -36,6 +37,8 @@ def __init__(self, channel):

class GRPCTestServerServicer:
"""Missing associated documentation comment in .proto file"""
# pylint: disable=invalid-name
# pylint: disable=no-self-use

def SimpleMethod(self, request, context):
"""Missing associated documentation comment in .proto file"""
Expand All @@ -62,7 +65,7 @@ def BidirectionalStreamingMethod(self, request_iterator, context):
raise NotImplementedError("Method not implemented!")


def add_GRPCTestServerServicer_to_server(servicer, server):
def add_GRPCTestServerServicer_to_server(servicer, server): # pylint: disable=invalid-name
rpc_method_handlers = {
"SimpleMethod": grpc.unary_unary_rpc_method_handler(
servicer.SimpleMethod,
Expand Down Expand Up @@ -95,6 +98,7 @@ def add_GRPCTestServerServicer_to_server(servicer, server):
class GRPCTestServer:
"""Missing associated documentation comment in .proto file"""

# pylint: disable=invalid-name
@staticmethod
def SimpleMethod(
request,
Expand Down

0 comments on commit 4a72ef6

Please sign in to comment.