Skip to content

Commit

Permalink
fix: fix type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
joein committed Oct 25, 2024
1 parent 3a0c8eb commit f7986de
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qdrant_client/hybrid/test_reranking.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from typing import List

import numpy as np

from qdrant_client.http import models
Expand Down Expand Up @@ -52,7 +54,7 @@ def test_distribution_based_score_fusion() -> None:


def test_reciprocal_rank_fusion_empty_responses() -> None:
responses = [[]]
responses: List[List[models.ScoredPoint]] = [[]]
fused = reciprocal_rank_fusion(responses)
assert fused == []

Expand All @@ -76,7 +78,7 @@ def test_reciprocal_rank_fusion_empty_responses() -> None:


def test_distribution_based_score_fusion_empty_response() -> None:
responses = [[]]
responses: List[List[models.ScoredPoint]] = [[]]
fused = distribution_based_score_fusion(responses, limit=3)
assert fused == []

Expand Down

0 comments on commit f7986de

Please sign in to comment.