From d6841150597f05de42520df5291c11d97ae35f15 Mon Sep 17 00:00:00 2001 From: Nikolas Lehto Date: Wed, 10 Jul 2024 22:05:02 +0200 Subject: [PATCH] Fixed a typing mistake. --- meilisearch/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch/index.py b/meilisearch/index.py index 7f10ccdb..6713945c 100644 --- a/meilisearch/index.py +++ b/meilisearch/index.py @@ -1081,7 +1081,7 @@ def get_distinct_attribute(self) -> Optional[str]: """ return self.http.get(self.__settings_url_for(self.config.paths.distinct_attribute)) - def update_distinct_attribute(self, body: Union[Dict[str, Any], None]) -> TaskInfo: + def update_distinct_attribute(self, body: str) -> TaskInfo: """Update distinct attribute of the index. Parameters