style(return types): adding missing return types

This commit is contained in:
CarolinePascal
2025-05-20 20:37:14 +02:00
parent 5f114c1d74
commit 7d430c8067
+5 -3
View File
@@ -15,6 +15,8 @@
from queue import Queue from queue import Queue
from threading import Thread from threading import Thread
import numpy as np
from .configs import MicrophoneConfig from .configs import MicrophoneConfig
from .microphone import Microphone from .microphone import Microphone
@@ -38,7 +40,7 @@ def async_microphones_start_recording(
output_files: list[str | None] | None = None, output_files: list[str | None] | None = None,
multiprocessing: bool = False, multiprocessing: bool = False,
overwrite: bool = True, overwrite: bool = True,
): ) -> None:
""" """
Starts recording on multiple microphones asynchronously to avoid delays Starts recording on multiple microphones asynchronously to avoid delays
""" """
@@ -58,7 +60,7 @@ def async_microphones_start_recording(
thread.join() thread.join()
def async_microphones_stop_recording(microphones: dict[str, Microphone]): def async_microphones_stop_recording(microphones: dict[str, Microphone]) -> None:
""" """
Stops recording on multiple microphones asynchronously to avoid delays Stops recording on multiple microphones asynchronously to avoid delays
""" """
@@ -74,7 +76,7 @@ def async_microphones_stop_recording(microphones: dict[str, Microphone]):
thread.join() thread.join()
def async_microphones_read(microphones: dict[str, Microphone]): def async_microphones_read(microphones: dict[str, Microphone]) -> dict[str, np.ndarray]:
""" """
Reads from multiple microphones asynchronously to avoid delays Reads from multiple microphones asynchronously to avoid delays
""" """