Skip to content

Commit

Permalink
Allow None in update_(non_)separator_tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
ellnix committed Oct 24, 2023
1 parent 0afbe81 commit a25e365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meilisearch/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -1669,7 +1669,7 @@ def get_non_separator_tokens(self) -> List[str]:
"""
return self.http.get(self.__settings_url_for(self.config.paths.non_separator_tokens))

def update_separator_tokens(self, body: List[str]) -> TaskInfo:
def update_separator_tokens(self, body: Union[List[str], None]) -> TaskInfo:
"""Update the additional separator tokens of the index.
Parameters
Expand All @@ -1692,7 +1692,7 @@ def update_separator_tokens(self, body: List[str]) -> TaskInfo:

return TaskInfo(**task)

def update_non_separator_tokens(self, body: List[str]) -> TaskInfo:
def update_non_separator_tokens(self, body: Union[List[str], None]) -> TaskInfo:
"""Update the disabled separator tokens of the index.
Parameters
Expand Down

0 comments on commit a25e365

Please sign in to comment.