Skip to content

Commit

Permalink
fix conversion type
Browse files Browse the repository at this point in the history
  • Loading branch information
agourlay committed Mar 5, 2025
1 parent 7b83229 commit 170f7bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qdrant_client/conversions/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -2043,8 +2043,8 @@ def convert_strict_mode_sparse_config(cls, model: grpc.StrictModeSparseConfig) -
return dict((key, cls.convert_strict_mode_sparse(val)) for key, val in model.sparse_config.items())

@classmethod
def convert_strict_mode_config(cls, model: grpc.StrictModeConfig) -> rest.StrictModeConfig:
return rest.StrictModeConfig(
def convert_strict_mode_config(cls, model: grpc.StrictModeConfig) -> rest.StrictModeConfigOutput:
return rest.StrictModeConfigOutput(
enabled=model.enabled if model.HasField("enabled") else None,
max_query_limit=model.max_query_limit if model.HasField("max_query_limit") else None,
max_timeout=model.max_timeout if model.HasField("max_timeout") else None,
Expand Down

0 comments on commit 170f7bf

Please sign in to comment.