From 8b9ac088685f359d7301043ccd3f025800ac1d42 Mon Sep 17 00:00:00 2001 From: carlosejimenez Date: Sat, 11 Jan 2025 19:00:05 +0000 Subject: [PATCH] Change swebench.harness.reporting to old style optional type hinting --- swebench/harness/reporting.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/swebench/harness/reporting.py b/swebench/harness/reporting.py index 3920e8b8..d0b4fe79 100644 --- a/swebench/harness/reporting.py +++ b/swebench/harness/reporting.py @@ -1,6 +1,7 @@ import docker import json from pathlib import Path +from typing import Optional from swebench.harness.constants import ( KEY_INSTANCE_ID, @@ -17,7 +18,7 @@ def make_run_report( predictions: dict, full_dataset: list, run_id: str, - client: docker.DockerClient | None = None, + client: Optional[docker.DockerClient] = None, ) -> Path: """ Make a final evaluation and run report of the instances that have been run.