Skip to content

Commit 56e2c6b

Browse files
authored
Update _httprequests.py
`str` type allowed in `put` request
1 parent b0cecd3 commit 56e2c6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meilisearch/_httprequests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def patch(
7878
def put(
7979
self,
8080
path: str,
81-
body: dict[str, Any] | list[dict[str, Any]] | list[str] | None = None,
81+
body: dict[str, Any] | list[dict[str, Any]] | list[str] | str | None = None,
8282
content_type: str | None = 'application/json',
8383
) -> Any:
8484
return self.send_request(requests.put, path, body, content_type)

0 commit comments

Comments
 (0)