Unverified Commit 312c5e55 authored by Yichen Xu's avatar Yichen Xu Committed by GitHub
Browse files

Fix type signature of read_problems (#9)

parent fa06031e
...@@ -8,7 +8,7 @@ ROOT = os.path.dirname(os.path.abspath(__file__)) ...@@ -8,7 +8,7 @@ ROOT = os.path.dirname(os.path.abspath(__file__))
HUMAN_EVAL = os.path.join(ROOT, "..", "data", "HumanEval.jsonl.gz") HUMAN_EVAL = os.path.join(ROOT, "..", "data", "HumanEval.jsonl.gz")
def read_problems(evalset_file: str = HUMAN_EVAL) -> Iterable[Dict[str, Dict]]: def read_problems(evalset_file: str = HUMAN_EVAL) -> Dict[str, Dict]:
return {task["task_id"]: task for task in stream_jsonl(evalset_file)} return {task["task_id"]: task for task in stream_jsonl(evalset_file)}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment