Skip to content

Commit

Permalink
fix: replace data with content to fix httpx deprecation warning (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
joein authored Jan 6, 2024
1 parent ccebf83 commit b733d0a
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 35 deletions.
6 changes: 3 additions & 3 deletions qdrant_client/http/api/cluster_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def _build_for_create_shard_key(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_delete_shard_key(
Expand Down Expand Up @@ -139,7 +139,7 @@ def _build_for_delete_shard_key(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_recover_current_peer(
Expand Down Expand Up @@ -204,7 +204,7 @@ def _build_for_update_collection_cluster(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)


Expand Down
18 changes: 9 additions & 9 deletions qdrant_client/http/api/collections_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def _build_for_create_collection(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_create_field_index(
Expand Down Expand Up @@ -134,7 +134,7 @@ def _build_for_create_field_index(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_create_shard_key(
Expand Down Expand Up @@ -162,7 +162,7 @@ def _build_for_create_shard_key(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_create_shard_snapshot(
Expand Down Expand Up @@ -301,7 +301,7 @@ def _build_for_delete_shard_key(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_delete_shard_snapshot(
Expand Down Expand Up @@ -546,7 +546,7 @@ def _build_for_recover_from_snapshot(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_recover_from_uploaded_snapshot(
Expand Down Expand Up @@ -616,7 +616,7 @@ def _build_for_recover_shard_from_snapshot(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_recover_shard_from_uploaded_snapshot(
Expand Down Expand Up @@ -677,7 +677,7 @@ def _build_for_update_aliases(
url="/collections/aliases",
headers=headers if headers else None,
params=query_params,
data=body,
content=body,
)

def _build_for_update_collection(
Expand Down Expand Up @@ -708,7 +708,7 @@ def _build_for_update_collection(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_update_collection_cluster(
Expand Down Expand Up @@ -736,7 +736,7 @@ def _build_for_update_collection_cluster(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)


Expand Down
40 changes: 20 additions & 20 deletions qdrant_client/http/api/points_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def _build_for_batch_update(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_clear_payload(
Expand Down Expand Up @@ -117,7 +117,7 @@ def _build_for_clear_payload(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_count_points(
Expand All @@ -142,7 +142,7 @@ def _build_for_count_points(
url="/collections/{collection_name}/points/count",
headers=headers if headers else None,
path_params=path_params,
data=body,
content=body,
)

def _build_for_delete_payload(
Expand Down Expand Up @@ -176,7 +176,7 @@ def _build_for_delete_payload(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_delete_points(
Expand Down Expand Up @@ -210,7 +210,7 @@ def _build_for_delete_points(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_delete_vectors(
Expand Down Expand Up @@ -244,7 +244,7 @@ def _build_for_delete_vectors(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_discover_batch_points(
Expand Down Expand Up @@ -278,7 +278,7 @@ def _build_for_discover_batch_points(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_discover_points(
Expand Down Expand Up @@ -312,7 +312,7 @@ def _build_for_discover_points(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_get_point(
Expand Down Expand Up @@ -371,7 +371,7 @@ def _build_for_get_points(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_overwrite_payload(
Expand Down Expand Up @@ -405,7 +405,7 @@ def _build_for_overwrite_payload(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_recommend_batch_points(
Expand Down Expand Up @@ -439,7 +439,7 @@ def _build_for_recommend_batch_points(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_recommend_point_groups(
Expand Down Expand Up @@ -473,7 +473,7 @@ def _build_for_recommend_point_groups(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_recommend_points(
Expand Down Expand Up @@ -507,7 +507,7 @@ def _build_for_recommend_points(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_scroll_points(
Expand Down Expand Up @@ -538,7 +538,7 @@ def _build_for_scroll_points(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_search_batch_points(
Expand Down Expand Up @@ -572,7 +572,7 @@ def _build_for_search_batch_points(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_search_point_groups(
Expand Down Expand Up @@ -606,7 +606,7 @@ def _build_for_search_point_groups(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_search_points(
Expand Down Expand Up @@ -640,7 +640,7 @@ def _build_for_search_points(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_set_payload(
Expand Down Expand Up @@ -674,7 +674,7 @@ def _build_for_set_payload(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_update_vectors(
Expand Down Expand Up @@ -708,7 +708,7 @@ def _build_for_update_vectors(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_upsert_points(
Expand Down Expand Up @@ -742,7 +742,7 @@ def _build_for_upsert_points(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)


Expand Down
2 changes: 1 addition & 1 deletion qdrant_client/http/api/service_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def _build_for_post_locks(
if "Content-Type" not in headers:
headers["Content-Type"] = "application/json"
return self.api_client.request(
type_=m.InlineResponse2002, method="POST", url="/locks", headers=headers if headers else None, data=body
type_=m.InlineResponse2002, method="POST", url="/locks", headers=headers if headers else None, content=body
)

def _build_for_readyz(
Expand Down
4 changes: 2 additions & 2 deletions qdrant_client/http/api/snapshots_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def _build_for_recover_from_snapshot(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_recover_from_uploaded_snapshot(
Expand Down Expand Up @@ -430,7 +430,7 @@ def _build_for_recover_shard_from_snapshot(
headers=headers if headers else None,
path_params=path_params,
params=query_params,
data=body,
content=body,
)

def _build_for_recover_shard_from_uploaded_snapshot(
Expand Down

0 comments on commit b733d0a

Please sign in to comment.