Skip to content

Commit

Permalink
Merge #993
Browse files Browse the repository at this point in the history
993: Fixed a typing mistake in /meilisearch/index.py:1084 r=sanders41 a=Nikolas-Lehto

# Pull Request

## What does this PR do?
- Fixes [this](https://discord.com/channels/1006923006964154428/1260681356027887771) bug, that has no issue but is documented on Discord.

## PR checklist
Please check if your PR fulfills the following requirements:
- [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
- [x] Have you read the contributing guidelines?
- [x] Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!


Co-authored-by: Nikolas Lehto <nikolas.lehto1@outlook.com>
  • Loading branch information
meili-bors[bot] and Nikolas-Lehto authored Jul 10, 2024
2 parents 376050f + d684115 commit a914be5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meilisearch/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a914be5

Please sign in to comment.