Skip to content

Commit 57d2335

Browse files
committed
fix: bad typing in custom_spelling led to ValidationError
GitOrigin-RevId: a6ec35a315d2ca4cdfafc6762a6842dcb1720d31
1 parent f06b508 commit 57d2335

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

assemblyai/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,7 @@ class BaseTranscript(BaseModel):
13141314
# iab_categories: bool = False
13151315
# "Enable Topic Detection."
13161316

1317-
custom_spelling: Optional[List[Dict[str, str]]]
1317+
custom_spelling: Optional[List[Dict[str, Union[str, List[str]]]]]
13181318
"Customize how words are spelled and formatted using to and from values"
13191319

13201320
disfluencies: Optional[bool]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name="assemblyai",
10-
version="0.7.0",
10+
version="0.7.2",
1111
description="AssemblyAI Python SDK",
1212
author="AssemblyAI",
1313
author_email="[email protected]",

tests/unit/test_auto_chapters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import pytest
77
from pytest_httpx import HTTPXMock
88

9+
import assemblyai.developer_tools.python.sdk.tests.unit.factories as factories
910
import assemblyai as aai
10-
from tests.unit import factories
1111

1212
aai.settings.api_key = "test"
1313

0 commit comments

Comments
 (0)