Skip to content

Commit

Permalink
change to explicit regular type as default
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorapo808 committed Nov 20, 2023
1 parent 1167cd8 commit 7b8b827
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stream_chat/async_chat/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ async def send_file(
return await self._parse_response(response)

async def create_blocklist(
self, name: str, words: Iterable[str], type: str = None
self, name: str, words: Iterable[str], type: str = "regular"
) -> StreamResponse:
return await self.post(
"blocklists", data={"name": name, "words": words, "type": type}
Expand Down
2 changes: 1 addition & 1 deletion stream_chat/base/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ def send_file(

@abc.abstractmethod
def create_blocklist(
self, name: str, words: Iterable[str], type: str = None
self, name: str, words: Iterable[str], type: str = "regular"
) -> Union[StreamResponse, Awaitable[StreamResponse]]:
"""
Create a blocklist
Expand Down
2 changes: 1 addition & 1 deletion stream_chat/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def send_file(
return self._parse_response(response)

def create_blocklist(
self, name: str, words: Iterable[str], type: str = None
self, name: str, words: Iterable[str], type: str = "regular"
) -> StreamResponse:
return self.post(
"blocklists", data={"name": name, "words": words, "type": type}
Expand Down

0 comments on commit 7b8b827

Please sign in to comment.