From 8be314866a6b528657d02c27c0370b18e57f2a8f Mon Sep 17 00:00:00 2001 From: MeditationDuck Date: Fri, 6 Dec 2024 16:21:11 +0100 Subject: [PATCH] :pencil2: review fix --- wake/cli/test.py | 4 ++-- wake/development/json_rpc/communicator.py | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/wake/cli/test.py b/wake/cli/test.py index c5369ccb..aa095b88 100644 --- a/wake/cli/test.py +++ b/wake/cli/test.py @@ -104,7 +104,7 @@ def shell_complete( type=str, help="Path to the shrink log file.", is_flag=False, - flag_value=0, + flag_value="0", default=None, required=False, ) @@ -116,7 +116,7 @@ def shell_complete( type=str, help="Path of shrank file.", is_flag=False, - flag_value=0, + flag_value="0", default=None, required=False, ) diff --git a/wake/development/json_rpc/communicator.py b/wake/development/json_rpc/communicator.py index 591b83d0..9b4ef177 100644 --- a/wake/development/json_rpc/communicator.py +++ b/wake/development/json_rpc/communicator.py @@ -43,7 +43,6 @@ class JsonRpcCommunicator: _protocol: ProtocolAbc _request_id: int _connected: bool - _interrupt_received: bool def __init__(self, config: WakeConfig, uri: str): if uri.startswith(("http://", "https://")): @@ -57,7 +56,7 @@ def __init__(self, config: WakeConfig, uri: str): self._request_id = 0 self._connected = False - self._interrupt_received = False + def __enter__(self): self._protocol.__enter__() self._connected = True