Skip to content

Commit 091148c

Browse files
mypy cannot find defined methods
1 parent 3518121 commit 091148c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

redisvl/index/index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
from redisvl.index.storage import BaseStorage, HashStorage, JsonStorage
4343
from redisvl.query import (
4444
AggregationQuery,
45-
BaseVectorQuery,
4645
BaseQuery,
46+
BaseVectorQuery,
4747
CountQuery,
4848
FilterQuery,
4949
HybridAggregationQuery,
@@ -716,7 +716,7 @@ def aggregate_query(
716716
717717
"""
718718
results = self.aggregate(
719-
aggregation_query, query_params=aggregation_query.params
719+
aggregation_query, query_params=aggregation_query.params # type: ignore[attr-defined]
720720
)
721721
return process_aggregate_results(
722722
results,

redisvl/query/aggregate.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,14 @@ def __init__(
114114
query_string = self._build_query_string()
115115
super().__init__(query_string)
116116

117-
self.scorer(text_scorer)
118-
self.add_scores()
117+
self.scorer(text_scorer) # type: ignore[attr-defined]
118+
self.add_scores() # type: ignore[attr-defined]
119119
self.apply(
120120
vector_similarity=f"(2 - @{self.DISTANCE_ID})/2", text_score="@__score"
121121
)
122122
self.apply(hybrid_score=f"{1-alpha}*@text_score + {alpha}*@vector_similarity")
123123
self.sort_by(Desc("@hybrid_score"), max=num_results)
124-
self.dialect(dialect)
124+
self.dialect(dialect) # type: ignore[attr-defined]
125125

126126
if return_fields:
127127
self.load(*return_fields)

0 commit comments

Comments
 (0)