docs: make doc generator understand multi line

ref: N25B-298
This commit is contained in:
Twirre Meulenbelt
2025-11-22 12:44:13 +01:00
parent c53307530b
commit 64c6f0addb

View File

@@ -29,7 +29,7 @@ def choose_mic_interactive(audio):
:type audio: pyaudio.PyAudio :type audio: pyaudio.PyAudio
:return: A dictionary from PyAudio containing information about the microphone to use, or None :return: A dictionary from PyAudio containing information about the microphone to use, or None
if there is no microphone. if there is no microphone.
:rtype: dict | None :rtype: dict | None
""" """
microphones = list(get_microphones(audio)) microphones = list(get_microphones(audio))
@@ -61,7 +61,7 @@ def choose_mic_default(audio):
:type audio: pyaudio.PyAudio :type audio: pyaudio.PyAudio
:return: A dictionary from PyAudio containing information about the microphone to use, or None :return: A dictionary from PyAudio containing information about the microphone to use, or None
if there is no microphone. if there is no microphone.
:rtype: dict | None :rtype: dict | None
""" """
try: try:
@@ -78,7 +78,7 @@ def choose_mic_arguments(audio):
:type audio: pyaudio.PyAudio :type audio: pyaudio.PyAudio
:return: A dictionary from PyAudio containing information about the microphone to use, or None :return: A dictionary from PyAudio containing information about the microphone to use, or None
if there is no microphone satisfied by the arguments. if there is no microphone satisfied by the arguments.
:rtype: dict | None :rtype: dict | None
""" """
microphone_name = None microphone_name = None
@@ -112,7 +112,7 @@ def choose_mic(audio):
:type audio: pyaudio.PyAudio :type audio: pyaudio.PyAudio
:return: A dictionary from PyAudio containing information about the microphone to use, or None :return: A dictionary from PyAudio containing information about the microphone to use, or None
if there is no microphone. if there is no microphone.
:rtype: dict | None :rtype: dict | None
""" """
chosen_mic = choose_mic_arguments(audio) chosen_mic = choose_mic_arguments(audio)