Skip to content

Commit e226991

Browse files
Goodnight77Copilot
andcommitted
Update qdrant_client/conversions/conversion.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a458613 commit e226991

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

qdrant_client/conversions/conversion.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3727,11 +3727,13 @@ def convert_dense_vector(cls, model: list[float]) -> grpc.DenseVector:
37273727

37283728
@staticmethod
37293729
def _validate_no_nan(vector: list[float]) -> None:
3730-
"""validate that vector does not contain NaN values
3730+
"""Validate that vector does not contain NaN values.
3731+
37313732
Args:
3732-
vector: List of float values to validate
3733+
vector: List of float values to validate.
3734+
37333735
Raises:
3734-
UnexpectedResponse: If the vector contains NaN values
3736+
UnexpectedResponse: If the vector contains NaN values.
37353737
"""
37363738
if any(math.isnan(val) for val in vector):
37373739
from qdrant_client.http.exceptions import UnexpectedResponse

0 commit comments

Comments
 (0)