Skip to content

Commit

Permalink
Use in tuple instead of or
Browse files Browse the repository at this point in the history
  • Loading branch information
kthui committed Jun 5, 2024
1 parent 3e823dc commit 178b65b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qa/L0_grpc_state_cleanup/cleanup_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def setUp(self):
self.repeat_non_decoupled_model_name = "repeat_int32_non_decoupled"

def _prepare_inputs_and_outputs(self, kind):
if kind == "decoupled_streaming" or kind == "non_decoupled_streaming":
if kind in ("decoupled_streaming", "non_decoupled_streaming"):
self.inputs_ = []
self.inputs_.append(grpcclient.InferInput("IN", [1], "INT32"))
self.inputs_.append(grpcclient.InferInput("DELAY", [1], "UINT32"))
Expand All @@ -80,7 +80,7 @@ def _prepare_inputs_and_outputs(self, kind):
self.outputs_.append(grpcclient.InferRequestedOutput("OUT"))
self.outputs_.append(grpcclient.InferRequestedOutput("IDX"))
self.requested_outputs_ = self.outputs_
elif kind == "simple" or kind == "streaming":
elif kind in ("simple", "streaming"):
self.inputs_ = []
self.inputs_.append(grpcclient.InferInput("INPUT0", [1, 1], "FP32"))

Expand Down

0 comments on commit 178b65b

Please sign in to comment.