Skip to content

Commit

Permalink
Fixed formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
afourney committed Feb 7, 2025
1 parent 83ac692 commit 462a975
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/packages/agbench/src/agbench/run_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ def replace_in_dict(d: Dict[str, Any]) -> None:
elif isinstance(value, list):
# Note: with the task mypy complains of a redundant cast
# without the cast, pyright complains the type is unknown
replace_in_list(cast(List[Any], value)) # type: ignore
replace_in_list(cast(List[Any], value)) # type: ignore

def replace_in_list(lst: List[Any]) -> None:
for i, item in enumerate(lst):
Expand All @@ -373,12 +373,12 @@ def replace_in_list(lst: List[Any]) -> None:
elif isinstance(item, dict):
replace_in_dict(cast(Dict[str, Any], item))
elif isinstance(item, list):
replace_in_list(cast(List[Any], item)) # type: ignore
replace_in_list(cast(List[Any], item)) # type: ignore

if isinstance(json_data, dict):
replace_in_dict(cast(Dict[str, Any], json_data))
elif isinstance(json_data, list):
replace_in_list(cast(List[Any], json_data)) # type: ignore
replace_in_list(cast(List[Any], json_data)) # type: ignore


def run_scenario_natively(work_dir: str, env: Mapping[str, str], timeout: int = TASK_TIMEOUT) -> None:
Expand Down

0 comments on commit 462a975

Please sign in to comment.