Skip to content

Commit f9ca4c4

Browse files
committed
try to fix mypy
1 parent e812030 commit f9ca4c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

autointent/_dump_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
ModuleSimpleAttributes = None | str | int | float | bool | list # type: ignore[type-arg]
2727

2828
ModuleAttributes: TypeAlias = (
29-
ModuleSimpleAttributes | TagsList | np.ndarray | Embedder | VectorIndex | BaseEstimator | Ranker # type: ignore[type-arg]
29+
ModuleSimpleAttributes | TagsList | np.ndarray | Embedder | VectorIndex | BaseEstimator | Ranker
3030
)
3131

3232
logger = logging.getLogger(__name__)

autointent/metrics/retrieval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ def retrieval_ndcg(query_labels: LABELS_VALUE_TYPE, candidates_labels: CANDIDATE
539539
query_label_, candidates_labels_ = transform(query_labels, candidates_labels)
540540

541541
ndcg_scores: list[float] = []
542-
relevance_scores: npt.NDArray[np.bool] = query_label_[:, None] == candidates_labels_
542+
relevance_scores = query_label_[:, None] == candidates_labels_
543543

544544
for rel_scores in relevance_scores:
545545
cur_dcg = _dcg(rel_scores, k)

0 commit comments

Comments
 (0)