From 3a9d09583c1180cd6848a3763db9d08e624a5b17 Mon Sep 17 00:00:00 2001 From: Wesley Maa Date: Wed, 15 Jan 2025 10:22:43 -0800 Subject: [PATCH] ign --- kos_sim/services.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kos_sim/services.py b/kos_sim/services.py index c60d007..4a020c2 100644 --- a/kos_sim/services.py +++ b/kos_sim/services.py @@ -18,7 +18,7 @@ def __init__(self, simulator: MujocoSimulator, step_controller: StepController) self.simulator = simulator self.step_controller = step_controller - def Reset( + def Reset( # noqa: N802 self, request: sim_pb2.ResetRequest, context: grpc.ServicerContext ) -> common_pb2.ActionResponse: # noqa: N802 """Reset the simulation to initial or specified state.""" @@ -38,7 +38,7 @@ def Reset( context.set_details(str(e)) return common_pb2.ActionResponse(success=False, error=str(e)) - def SetPaused( + def SetPaused( # noqa: N802 self, request: sim_pb2.SetPausedRequest, context: grpc.ServicerContext ) -> common_pb2.ActionResponse: # noqa: N802 """Pause or unpause the simulation.""" @@ -52,7 +52,7 @@ def SetPaused( context.set_details(str(e)) return common_pb2.ActionResponse(success=False, error=str(e)) - def Step( + def Step( # noqa: N802 self, request: sim_pb2.StepRequest, context: grpc.ServicerContext ) -> common_pb2.ActionResponse: # noqa: N802 """Step the simulation forward.""" @@ -102,9 +102,9 @@ def SetParameters( # noqa: N802 context.set_details(str(e)) return common_pb2.ActionResponse(success=False, error=str(e)) - def GetParameters( + def GetParameters( # noqa: N802 self, request: empty_pb2.Empty, context: grpc.ServicerContext - ) -> sim_pb2.GetParametersResponse: # noqa: N802 + ) -> sim_pb2.GetParametersResponse: """Get current simulation parameters.""" logger.info("GetParameters request received") try: