@@ -1478,7 +1478,7 @@ async def update_settings(self, body: MeilisearchSettings) -> TaskInfo:
14781478 >>> index = client.index("movies")
14791479 >>> await index.update_settings(new_settings)
14801480 """
1481- if is_pydantic_2 :
1481+ if is_pydantic_2 () :
14821482 body_dict = {k : v for k , v in body .model_dump (by_alias = True ).items () if v is not None } # type: ignore[attr-defined]
14831483 else : # pragma: no cover
14841484 body_dict = {k : v for k , v in body .dict (by_alias = True ).items () if v is not None } # type: ignore[attr-defined]
@@ -2189,7 +2189,7 @@ async def update_typo_tolerance(self, typo_tolerance: TypoTolerance) -> TaskInfo
21892189 """
21902190 url = f"{ self ._settings_url } /typo-tolerance"
21912191
2192- if is_pydantic_2 :
2192+ if is_pydantic_2 () :
21932193 response = await self ._http_requests .patch (url , typo_tolerance .model_dump (by_alias = True )) # type: ignore[attr-defined]
21942194 else : # pragma: no cover
21952195 response = await self ._http_requests .patch (url , typo_tolerance .dict (by_alias = True )) # type: ignore[attr-defined]
@@ -2265,7 +2265,7 @@ async def update_faceting(self, faceting: Faceting) -> TaskInfo:
22652265 """
22662266 url = f"{ self ._settings_url } /faceting"
22672267
2268- if is_pydantic_2 :
2268+ if is_pydantic_2 () :
22692269 response = await self ._http_requests .patch (url , faceting .model_dump (by_alias = True )) # type: ignore[attr-defined]
22702270 else : # pragma: no cover
22712271 response = await self ._http_requests .patch (url , faceting .dict (by_alias = True )) # type: ignore[attr-defined]
@@ -2342,7 +2342,7 @@ async def update_pagination(self, settings: Pagination) -> TaskInfo:
23422342 """
23432343 url = f"{ self ._settings_url } /pagination"
23442344
2345- if is_pydantic_2 :
2345+ if is_pydantic_2 () :
23462346 response = await self ._http_requests .patch (url , settings .model_dump (by_alias = True )) # type: ignore[attr-defined]
23472347 else : # pragma: no cover
23482348 response = await self ._http_requests .patch (url , settings .dict (by_alias = True )) # type: ignore[attr-defined]
0 commit comments