Skip to content

Commit

Permalink
Merge pull request #1300 from DrDavidS/master
Browse files Browse the repository at this point in the history
[Bugfix] Typehint error on py38
  • Loading branch information
545999961 authored Dec 30, 2024
2 parents bae5fab + b83f16a commit ff3c36a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FlagEmbedding/abc/finetune/reranker/AbsDataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class AbsRerankerCollator(DataCollatorWithPadding):
query_max_len: int = 32
passage_max_len: int = 128

def __call__(self, features) -> list[BatchEncoding]:
def __call__(self, features) -> List[BatchEncoding]:
teacher_scores = [f[1] for f in features]
if teacher_scores[0] is None:
teacher_scores = None
Expand Down

0 comments on commit ff3c36a

Please sign in to comment.