Skip to content

Commit de0189b

Browse files
committed
Fix mypy error
1 parent 0b5c055 commit de0189b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assemblyai/extras.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import time
2-
from typing import BinaryIO, Generator
2+
from typing import BinaryIO, Generator, Optional
33
from warnings import warn
44

55
from . import api
@@ -22,7 +22,7 @@ def __init__(
2222

2323

2424
class MicrophoneStream:
25-
def __init__(self, sample_rate: int = 44_100, device_index: int = None):
25+
def __init__(self, sample_rate: int = 44_100, device_index: Optional[int] = None):
2626
"""
2727
Creates a stream of audio from the microphone.
2828

0 commit comments

Comments
 (0)