@@ -858,7 +858,7 @@ def get_ranking_rules(self) -> List[str]:
858
858
"""
859
859
return self .http .get (self .__settings_url_for (self .config .paths .ranking_rules ))
860
860
861
- def update_ranking_rules (self , body : List [str ]) -> TaskInfo :
861
+ def update_ranking_rules (self , body : Union [ List [str ], None ]) -> TaskInfo :
862
862
"""Update ranking rules of the index.
863
863
864
864
Parameters
@@ -918,7 +918,7 @@ def get_distinct_attribute(self) -> Optional[str]:
918
918
"""
919
919
return self .http .get (self .__settings_url_for (self .config .paths .distinct_attribute ))
920
920
921
- def update_distinct_attribute (self , body : Dict [str , Any ]) -> TaskInfo :
921
+ def update_distinct_attribute (self , body : Union [ Dict [str , Any ], None ]) -> TaskInfo :
922
922
"""Update distinct attribute of the index.
923
923
924
924
Parameters
@@ -978,7 +978,7 @@ def get_searchable_attributes(self) -> List[str]:
978
978
"""
979
979
return self .http .get (self .__settings_url_for (self .config .paths .searchable_attributes ))
980
980
981
- def update_searchable_attributes (self , body : List [str ]) -> TaskInfo :
981
+ def update_searchable_attributes (self , body : Union [ List [str ], None ]) -> TaskInfo :
982
982
"""Update searchable attributes of the index.
983
983
984
984
Parameters
@@ -1038,7 +1038,7 @@ def get_displayed_attributes(self) -> List[str]:
1038
1038
"""
1039
1039
return self .http .get (self .__settings_url_for (self .config .paths .displayed_attributes ))
1040
1040
1041
- def update_displayed_attributes (self , body : List [str ]) -> TaskInfo :
1041
+ def update_displayed_attributes (self , body : Union [ List [str ], None ]) -> TaskInfo :
1042
1042
"""Update displayed attributes of the index.
1043
1043
1044
1044
Parameters
@@ -1098,7 +1098,7 @@ def get_stop_words(self) -> List[str]:
1098
1098
"""
1099
1099
return self .http .get (self .__settings_url_for (self .config .paths .stop_words ))
1100
1100
1101
- def update_stop_words (self , body : List [str ]) -> TaskInfo :
1101
+ def update_stop_words (self , body : Union [ List [str ], None ]) -> TaskInfo :
1102
1102
"""Update stop words of the index.
1103
1103
1104
1104
Parameters
@@ -1158,7 +1158,7 @@ def get_synonyms(self) -> Dict[str, List[str]]:
1158
1158
"""
1159
1159
return self .http .get (self .__settings_url_for (self .config .paths .synonyms ))
1160
1160
1161
- def update_synonyms (self , body : Dict [str , List [str ]]) -> TaskInfo :
1161
+ def update_synonyms (self , body : Union [ Dict [str , List [str ]], None ]) -> TaskInfo :
1162
1162
"""Update synonyms of the index.
1163
1163
1164
1164
Parameters
@@ -1218,7 +1218,7 @@ def get_filterable_attributes(self) -> List[str]:
1218
1218
"""
1219
1219
return self .http .get (self .__settings_url_for (self .config .paths .filterable_attributes ))
1220
1220
1221
- def update_filterable_attributes (self , body : List [str ]) -> TaskInfo :
1221
+ def update_filterable_attributes (self , body : Union [ List [str ], None ]) -> TaskInfo :
1222
1222
"""Update filterable attributes of the index.
1223
1223
1224
1224
Parameters
@@ -1278,7 +1278,7 @@ def get_sortable_attributes(self) -> List[str]:
1278
1278
"""
1279
1279
return self .http .get (self .__settings_url_for (self .config .paths .sortable_attributes ))
1280
1280
1281
- def update_sortable_attributes (self , body : List [str ]) -> TaskInfo :
1281
+ def update_sortable_attributes (self , body : Union [ List [str ], None ]) -> TaskInfo :
1282
1282
"""Update sortable attributes of the index.
1283
1283
1284
1284
Parameters
@@ -1340,7 +1340,7 @@ def get_typo_tolerance(self) -> TypoTolerance:
1340
1340
1341
1341
return TypoTolerance (** typo_tolerance )
1342
1342
1343
- def update_typo_tolerance (self , body : Dict [str , Any ]) -> TaskInfo :
1343
+ def update_typo_tolerance (self , body : Union [ Dict [str , Any ], None ]) -> TaskInfo :
1344
1344
"""Update typo tolerance of the index.
1345
1345
1346
1346
Parameters
@@ -1400,7 +1400,7 @@ def get_pagination_settings(self) -> Pagination:
1400
1400
1401
1401
return Pagination (** pagination )
1402
1402
1403
- def update_pagination_settings (self , body : Dict [str , Any ]) -> TaskInfo :
1403
+ def update_pagination_settings (self , body : Union [ Dict [str , Any ], None ]) -> TaskInfo :
1404
1404
"""Update the pagination settings of the index.
1405
1405
1406
1406
Parameters
@@ -1462,7 +1462,7 @@ def get_faceting_settings(self) -> Faceting:
1462
1462
1463
1463
return Faceting (** faceting )
1464
1464
1465
- def update_faceting_settings (self , body : Dict [str , Any ]) -> TaskInfo :
1465
+ def update_faceting_settings (self , body : Union [ Dict [str , Any ], None ]) -> TaskInfo :
1466
1466
"""Update the faceting settings of the index.
1467
1467
1468
1468
Parameters
0 commit comments