Skip to content

Commit 9dc3276

Browse files
committed
add type
1 parent afbab76 commit 9dc3276

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/pytest/test_markdown_highlighting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import json
88
import re
9-
from typing import Any, Dict, List
9+
from typing import Any, Dict, List, Optional
1010

1111
from eval_protocol.models import EvaluateResult, EvaluationRow, Message, InputMetadata, CompletionParams
1212
from eval_protocol.pytest import evaluation_test, default_single_turn_rollout_processor, evaluate
@@ -25,7 +25,7 @@ def markdown_dataset_to_evaluation_row(data: List[Dict[str, Any]]) -> List[Evalu
2525
]
2626

2727

28-
def markdown_format_evaluate(messages: List[Message], ground_truth=None, **kwargs) -> EvaluateResult:
28+
def markdown_format_evaluate(messages: List[Message], ground_truth: Optional[str]=None, **kwargs) -> EvaluateResult:
2929
"""
3030
Evaluation function that checks if the model's response contains the required number of formatted sections.
3131
"""

0 commit comments

Comments
 (0)