Skip to content

Commit a25e365

Browse files
committed
Allow None in update_(non_)separator_tokens
1 parent 0afbe81 commit a25e365

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

meilisearch/index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1669,7 +1669,7 @@ def get_non_separator_tokens(self) -> List[str]:
16691669
"""
16701670
return self.http.get(self.__settings_url_for(self.config.paths.non_separator_tokens))
16711671

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

16931693
return TaskInfo(**task)
16941694

1695-
def update_non_separator_tokens(self, body: List[str]) -> TaskInfo:
1695+
def update_non_separator_tokens(self, body: Union[List[str], None]) -> TaskInfo:
16961696
"""Update the disabled separator tokens of the index.
16971697
16981698
Parameters

0 commit comments

Comments
 (0)