Skip to content

Commit

Permalink
Fix mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
ploeber authored Sep 16, 2024
1 parent 8656129 commit 96a9fe3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assemblyai/extras.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import time
from typing import BinaryIO, Generator
from typing import BinaryIO, Generator, Optional
from warnings import warn

from . import api
Expand All @@ -22,7 +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: Optional[int] = None):
"""
Creates a stream of audio from the microphone.
Expand Down

0 comments on commit 96a9fe3

Please sign in to comment.