mypy linting fixes 2

This commit is contained in:
ishaan-jaff 2023-08-18 11:16:31 -07:00
parent 15b1da9dc8
commit fbcb6d1c20
4 changed files with 14 additions and 14 deletions

View file

@ -11,7 +11,7 @@ from threading import Thread
from openai.error import Timeout
def timeout(timeout_duration: float = None, exception_to_raise=Timeout):
def timeout(timeout_duration: float = 0.0, exception_to_raise=Timeout):
"""
Wraps a function to raise the specified exception if execution time
is greater than the specified timeout.