Skip to content

Commit

Permalink
Add back type ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrl committed Aug 20, 2024
1 parent d75c59c commit 01cd3d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haystack/components/samplers/top_p.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def _get_doc_score_from_meta(self, doc: Document) -> Optional[float]:
:param doc: Document object.
:return: Score of the document.
"""
score: Optional[float] = doc.meta.get(self.score_field)
score: Optional[float] = doc.meta.get(self.score_field) # type: ignore
if not isinstance(score, float):
score = None
return score
Expand Down

0 comments on commit 01cd3d4

Please sign in to comment.