Skip to content

Commit 112cfdb

Browse files
committed
Fix imports
1 parent 35bb91b commit 112cfdb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

speechmatics_flow/tool_function_param.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,14 @@
2222
dict(tool_function)
2323
"""
2424

25+
import sys
26+
2527
from typing import Literal, Optional, Dict, List, TypedDict
2628

27-
from typing_extensions import Required
29+
if sys.version_info < (3, 11):
30+
from typing_extensions import Required
31+
else:
32+
from typing import Required
2833

2934

3035
class Property(TypedDict):

0 commit comments

Comments
 (0)