Skip to content

Commit

Permalink
satisfying type checker
Browse files Browse the repository at this point in the history
  • Loading branch information
liamjxu committed Dec 15, 2024
1 parent 054c4aa commit 11e7334
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/helm/benchmark/annotation/annotator.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def annotate(self, request_state: RequestState) -> Any:
def annotate_all(self, request_states: List[RequestState]) -> List[Dict[str, Any]]:
"""Fills the annotations field of all request states with additional information
that are implementation specific."""
pass
return [self.annotate(request_state) for request_state in request_states]


@dataclass(frozen=True)
Expand Down
2 changes: 1 addition & 1 deletion src/helm/benchmark/annotation_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,5 @@ def process_all(self, annotator_specs: List[AnnotatorSpec], states: List[Request
new_annotations = annotator.annotate_all(states)
annotations[annotator.name] = new_annotations
except Exception as e:
raise AnnotationExecutorError(f"{str(e)} Request: {states.request}") from e
raise AnnotationExecutorError(f"{str(e)} Request: {[state.request for state in states]}") from e
return [replace(state, annotations=new_annotations[idx]) for idx, state in enumerate(states)]

0 comments on commit 11e7334

Please sign in to comment.