Skip to content

Commit

Permalink
deprecate: mark rest property as deprecated in QdrantClient
Browse files Browse the repository at this point in the history
- Added deprecation warnings for rest property
- refs: #597
  • Loading branch information
hh-space-invader committed Aug 18, 2024
1 parent 5d93e5e commit 9ce6657
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qdrant_client/qdrant_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,11 @@ def rest(self) -> SyncApis[ApiClient]:
Returns:
An instance of raw REST API client, generated from OpenAPI schema
"""
warnings.warn(
"The 'rest' property is deprecated and will be removed in a future version. Use `http` instead.",
DeprecationWarning,
stacklevel=2,
)
if isinstance(self._client, QdrantRemote):
return self._client.rest

Expand Down

0 comments on commit 9ce6657

Please sign in to comment.