Skip to content

Commit

Permalink
Fix ruff linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ploeber authored Sep 16, 2024
1 parent 9324e15 commit 8656129
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions assemblyai/extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ def __init__(


class MicrophoneStream:
def __init__(
self,
sample_rate: int = 44_100,
device_index: int = None
):
def __init__(self, sample_rate: int = 44_100, device_index: int = None):
"""
Creates a stream of audio from the microphone.
Expand Down Expand Up @@ -144,4 +140,4 @@ def file_from_stream(data: BinaryIO) -> str:
return api.upload_file(
client=Client.get_default().http_client,
audio_file=data,
)
)

0 comments on commit 8656129

Please sign in to comment.