Skip to content

Commit 9962ffa

Browse files
Changes from PR review
1 parent 8b9c6c6 commit 9962ffa

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

meilisearch/_httprequests.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def send_request(
3333
Mapping[str, Any],
3434
Sequence[Mapping[str, Any]],
3535
List[str],
36+
bytes,
3637
str,
3738
int,
3839
ProximityPrecision,
@@ -84,7 +85,7 @@ def post(
8485
self,
8586
path: str,
8687
body: Optional[
87-
Union[Mapping[str, Any], Sequence[Mapping[str, Any]], List[str], str]
88+
Union[Mapping[str, Any], Sequence[Mapping[str, Any]], List[str], bytes, str]
8889
] = None,
8990
content_type: Optional[str] = "application/json",
9091
*,
@@ -96,7 +97,7 @@ def patch(
9697
self,
9798
path: str,
9899
body: Optional[
99-
Union[Mapping[str, Any], Sequence[Mapping[str, Any]], List[str], str]
100+
Union[Mapping[str, Any], Sequence[Mapping[str, Any]], List[str], bytes, str]
100101
] = None,
101102
content_type: Optional[str] = "application/json",
102103
) -> Any:
@@ -110,6 +111,7 @@ def put(
110111
Mapping[str, Any],
111112
Sequence[Mapping[str, Any]],
112113
List[str],
114+
bytes,
113115
str,
114116
int,
115117
ProximityPrecision,

meilisearch/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,8 +576,8 @@ def add_documents_ndjson(
576576
def add_documents_raw(
577577
self,
578578
str_documents: bytes,
579-
content_type: str,
580579
primary_key: Optional[str] = None,
580+
content_type: Optional[str] = None,
581581
csv_delimiter: Optional[str] = None,
582582
*,
583583
serializer: Optional[Type[JSONEncoder]] = None,

0 commit comments

Comments
 (0)