mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-02 00:34:44 +00:00
remove type ignore
This commit is contained in:
parent
283b5c1def
commit
3acd37bcb3
1 changed files with 4 additions and 4 deletions
|
@ -38,13 +38,13 @@ EvalCandidate = Annotated[
|
|||
|
||||
@json_schema_type
|
||||
class BenchmarkEvalTaskConfig(BaseModel):
|
||||
eval_candidate: EvalCandidate # type: ignore
|
||||
eval_candidate: EvalCandidate
|
||||
|
||||
|
||||
@json_schema_type
|
||||
class AppEvalTaskConfig(BaseModel):
|
||||
eval_candidate: EvalCandidate # type: ignore
|
||||
scoring_params: Dict[str, ScoringFnParams] = Field( # type: ignore
|
||||
eval_candidate: EvalCandidate
|
||||
scoring_params: Dict[str, ScoringFnParams] = Field(
|
||||
description="Map between scoring function id and parameters",
|
||||
default_factory=dict,
|
||||
)
|
||||
|
@ -83,7 +83,7 @@ class Eval(Protocol):
|
|||
self,
|
||||
input_rows: List[Dict[str, Any]],
|
||||
scoring_functions: List[str],
|
||||
eval_task_config: EvalTaskConfig, # type: ignore
|
||||
eval_task_config: EvalTaskConfig,
|
||||
) -> EvaluateResponse: ...
|
||||
|
||||
@webmethod(route="/eval/job/status", method="GET")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue