Skip to content

Commit f1c2a6d

Browse files
committed
Pre-commit fixes
1 parent 6b42247 commit f1c2a6d

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

src/rai/rai/communication/base_connector.py

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import logging
1615
from abc import ABC, abstractmethod
1716
from typing import Callable
1817
from uuid import uuid4
1918

19+
2020
class BaseMessage(ABC):
21-
...
21+
pass
22+
2223

2324
class BaseConnector(ABC):
2425

@@ -27,20 +28,22 @@ def _generate_handle(self) -> str:
2728

2829
@abstractmethod
2930
def send_message(self, msg: BaseMessage, target: str) -> None:
30-
...
31+
pass
3132

3233
@abstractmethod
3334
def receive_message(self, source: str) -> BaseMessage:
34-
...
35+
pass
3536

3637
@abstractmethod
3738
def send_and_wait(self, target: str) -> BaseMessage:
38-
...
39-
39+
pass
40+
4041
@abstractmethod
41-
def start_action(self, target: str, on_feedback: Callable, on_finish: Callable = lambda _: None) -> str:
42-
...
43-
42+
def start_action(
43+
self, target: str, on_feedback: Callable, on_finish: Callable = lambda _: None
44+
) -> str:
45+
pass
46+
4447
@abstractmethod
4548
def terminate_action(self, action_handle: str):
46-
...
49+
pass

tests/communication/test_sound_device_connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def test_start_action_failed_init(
6464

6565
recording_device = 0
6666
with pytest.raises(SoundDeviceError, match="Device 0 has not been configured"):
67-
stream_handle = audio_input_device.start_action(
67+
_ = audio_input_device.start_action(
6868
str(recording_device), feedback_callback, finish_callback
6969
)
7070

0 commit comments

Comments
 (0)