From 458156671b4e67d96780a88f07dbd5d0cf84d72c Mon Sep 17 00:00:00 2001 From: David Montague <35119617+dmontagu@users.noreply.github.com> Date: Fri, 28 Mar 2025 18:33:35 -0600 Subject: [PATCH] Fix the default types of generic params to EvaluatorContext --- pydantic_evals/pydantic_evals/evaluators/context.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pydantic_evals/pydantic_evals/evaluators/context.py b/pydantic_evals/pydantic_evals/evaluators/context.py index 8a7e3b4926..1aceae6140 100644 --- a/pydantic_evals/pydantic_evals/evaluators/context.py +++ b/pydantic_evals/pydantic_evals/evaluators/context.py @@ -15,13 +15,13 @@ from ..otel.span_tree import SpanTree # ScoringContext needs to be covariant -InputsT = TypeVar('InputsT', default=dict[str, Any], covariant=True) +InputsT = TypeVar('InputsT', default=Any, covariant=True) """Type variable for the inputs to the task being evaluated.""" -OutputT = TypeVar('OutputT', default=dict[str, Any], covariant=True) +OutputT = TypeVar('OutputT', default=Any, covariant=True) """Type variable for the output of the task being evaluated.""" -MetadataT = TypeVar('MetadataT', default=dict[str, Any], covariant=True) +MetadataT = TypeVar('MetadataT', default=Any, covariant=True) """Type variable for the metadata associated with the task being evaluated."""