Skip to content

Commit b199155

Browse files
authored
Merge pull request #1352 from sanders41/backwards-compatable
Fix backwards compatability with Meilisearch < 1.15
2 parents a64874f + e0ecd3a commit b199155

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

meilisearch_python_sdk/index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3785,7 +3785,7 @@ async def update_typo_tolerance(
37853785
"""
37863786
response = await self._http_requests.patch(
37873787
f"{self._settings_url}/typo-tolerance",
3788-
typo_tolerance.model_dump(by_alias=True),
3788+
typo_tolerance.model_dump(by_alias=True, exclude_unset=True),
37893789
compress=compress,
37903790
)
37913791

@@ -7401,7 +7401,7 @@ def update_typo_tolerance(
74017401
"""
74027402
response = self._http_requests.patch(
74037403
f"{self._settings_url}/typo-tolerance",
7404-
typo_tolerance.model_dump(by_alias=True),
7404+
typo_tolerance.model_dump(by_alias=True, exclude_unset=True),
74057405
compress=compress,
74067406
)
74077407

0 commit comments

Comments
 (0)