Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Refactored the way of warnings #864

Merged
merged 16 commits into from
Jan 6, 2025
Merged
Prev Previous commit
fix: revert append payload condition
  • Loading branch information
joein committed Jan 6, 2025
commit 88237868b877a2d495379f023023209d6dcb5c2e
2 changes: 1 addition & 1 deletion qdrant_client/async_qdrant_remote.py
Original file line number Diff line number Diff line change
@@ -381,7 +381,7 @@ async def search(
timeout: Optional[int] = None,
**kwargs: Any,
) -> list[types.ScoredPoint]:
if append_payload is not None:
if not append_payload:
show_warning_once(
message="Usage of `append_payload` is deprecated. Please consider using `with_payload` instead",
category=DeprecationWarning,
2 changes: 1 addition & 1 deletion qdrant_client/qdrant_remote.py
Original file line number Diff line number Diff line change
@@ -426,7 +426,7 @@ def search(
timeout: Optional[int] = None,
**kwargs: Any,
) -> list[types.ScoredPoint]:
if append_payload is not None:
if not append_payload:
show_warning_once(
message="Usage of `append_payload` is deprecated. Please consider using `with_payload` instead",
category=DeprecationWarning,
Loading