Skip to content

Commit

Permalink
Fix mypy failing (valkey-io#2453)
Browse files Browse the repository at this point in the history
---------

Signed-off-by: Shoham Elias <[email protected]>
  • Loading branch information
shohamazon authored Oct 14, 2024
1 parent 705b404 commit 3661f87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/python/tests/test_async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -9725,7 +9725,7 @@ async def cluster_route_custom_command_slot_route(
route_class = SlotKeyRoute if is_slot_key else SlotIdRoute
route_second_arg = "foo" if is_slot_key else 4000
primary_res = await glide_client.custom_command(
["CLUSTER", "NODES"], route_class(SlotType.PRIMARY, route_second_arg)
["CLUSTER", "NODES"], route_class(SlotType.PRIMARY, route_second_arg) # type: ignore
)
assert isinstance(primary_res, bytes)
primary_res = primary_res.decode()
Expand All @@ -9738,7 +9738,7 @@ async def cluster_route_custom_command_slot_route(
expected_primary_node_id = node_line.split(" ")[0]

replica_res = await glide_client.custom_command(
["CLUSTER", "NODES"], route_class(SlotType.REPLICA, route_second_arg)
["CLUSTER", "NODES"], route_class(SlotType.REPLICA, route_second_arg) # type: ignore
)
assert isinstance(replica_res, bytes)
replica_res = replica_res.decode()
Expand Down

0 comments on commit 3661f87

Please sign in to comment.