Skip to content

Commit

Permalink
typing update
Browse files Browse the repository at this point in the history
  • Loading branch information
yasserfarouk committed Dec 11, 2023
1 parent 20ced1d commit 42eb5d1
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions src/scml/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

import copy
from pathlib import Path
from collections import defaultdict
from functools import partial
from itertools import chain
Expand Down Expand Up @@ -1162,7 +1163,7 @@ def anac2020_tournament(
n_runs_per_world: int = 2,
n_agents_per_competitor: int = 3,
min_factories_per_level: int = 2,
tournament_path: str | None = None,
tournament_path: str | Path | None = None,
total_timeout: int | None = None,
parallelism="parallel",
scheduler_ip: str | None = None,
Expand Down Expand Up @@ -1250,7 +1251,7 @@ def anac2020_std(
max_worlds_per_config: int | None = None,
n_runs_per_world: int = 1,
min_factories_per_level: int = 2,
tournament_path: str | None = None,
tournament_path: str | Path | None = None,
total_timeout: int | None = None,
parallelism="parallel",
scheduler_ip: str | None = None,
Expand Down Expand Up @@ -1378,7 +1379,7 @@ def anac2020_collusion(
n_runs_per_world: int = 1,
n_agents_per_competitor: int = 3,
min_factories_per_level: int = 2,
tournament_path: str | None = None,
tournament_path: str | Path | None = None,
total_timeout: int | None = None,
parallelism="parallel",
scheduler_ip: str | None = None,
Expand Down Expand Up @@ -1506,7 +1507,7 @@ def anac2021_tournament(
n_runs_per_world: int = 2,
n_agents_per_competitor: int = 3,
min_factories_per_level: int = 2,
tournament_path: str | None = None,
tournament_path: str | Path | None = None,
total_timeout: int | None = None,
parallelism="parallel",
scheduler_ip: str | None = None,
Expand Down Expand Up @@ -1594,7 +1595,7 @@ def anac2021_std(
max_worlds_per_config: int | None = None,
n_runs_per_world: int = 1,
min_factories_per_level: int = 2,
tournament_path: str | None = None,
tournament_path: str | Path | None = None,
total_timeout: int | None = None,
parallelism="parallel",
scheduler_ip: str | None = None,
Expand Down Expand Up @@ -1724,7 +1725,7 @@ def anac2021_collusion(
n_runs_per_world: int = 1,
n_agents_per_competitor: int = 3,
min_factories_per_level: int = 2,
tournament_path: str | None = None,
tournament_path: str | Path | None = None,
total_timeout: int | None = None,
parallelism="parallel",
scheduler_ip: str | None = None,
Expand Down Expand Up @@ -1852,7 +1853,7 @@ def anac2021_oneshot(
max_worlds_per_config: int | None = None,
n_runs_per_world: int = 1,
min_factories_per_level: int = 4,
tournament_path: str | None = None,
tournament_path: str | Path | None = None,
total_timeout: int | None = None,
parallelism="parallel",
scheduler_ip: str | None = None,
Expand Down Expand Up @@ -1988,7 +1989,7 @@ def anac2022_tournament(
n_runs_per_world: int = 2,
n_agents_per_competitor: int = 3,
min_factories_per_level: int = 2,
tournament_path: str | None = None,
tournament_path: str | Path | None = None,
total_timeout: int | None = None,
parallelism="parallel",
scheduler_ip: str | None = None,
Expand Down Expand Up @@ -2076,7 +2077,7 @@ def anac2022_std(
max_worlds_per_config: int | None = None,
n_runs_per_world: int = 1,
min_factories_per_level: int = 2,
tournament_path: str | None = None,
tournament_path: str | Path | None = None,
total_timeout: int | None = None,
parallelism="parallel",
scheduler_ip: str | None = None,
Expand Down Expand Up @@ -2206,7 +2207,7 @@ def anac2022_collusion(
n_runs_per_world: int = 1,
n_agents_per_competitor: int = 3,
min_factories_per_level: int = 2,
tournament_path: str | None = None,
tournament_path: str | Path | None = None,
total_timeout: int | None = None,
parallelism="parallel",
scheduler_ip: str | None = None,
Expand Down Expand Up @@ -2334,7 +2335,7 @@ def anac2022_oneshot(
max_worlds_per_config: int | None = None,
n_runs_per_world: int = 1,
min_factories_per_level: int = 4,
tournament_path: str | None = None,
tournament_path: str | Path | None = None,
total_timeout: int | None = None,
parallelism="parallel",
scheduler_ip: str | None = None,
Expand Down Expand Up @@ -2432,7 +2433,7 @@ def anac2023_tournament(
n_runs_per_world: int = 2,
n_agents_per_competitor: int = 3,
min_factories_per_level: int = 2,
tournament_path: str | None = None,
tournament_path: str | Path | None = None,
total_timeout: int | None = None,
parallelism="parallel",
scheduler_ip: str | None = None,
Expand Down Expand Up @@ -2521,7 +2522,7 @@ def anac2023_collusion(
n_runs_per_world: int = 1,
n_agents_per_competitor: int = 3,
min_factories_per_level: int = 2,
tournament_path: str | None = None,
tournament_path: str | Path | None = None,
total_timeout: int | None = None,
parallelism="parallel",
scheduler_ip: str | None = None,
Expand Down Expand Up @@ -2649,7 +2650,7 @@ def anac2023_std(
max_worlds_per_config: int | None = None,
n_runs_per_world: int = 1,
min_factories_per_level: int = 2,
tournament_path: str | None = None,
tournament_path: str | Path | None = None,
total_timeout: int | None = None,
parallelism="parallel",
scheduler_ip: str | None = None,
Expand Down Expand Up @@ -2778,7 +2779,7 @@ def anac2023_oneshot(
max_worlds_per_config: int | None = None,
n_runs_per_world: int = 1,
min_factories_per_level: int = 4,
tournament_path: str | None = None,
tournament_path: str | Path | None = None,
total_timeout: int | None = None,
parallelism="parallel",
scheduler_ip: str | None = None,
Expand Down Expand Up @@ -2914,7 +2915,7 @@ def anac2024_std(
max_worlds_per_config: int | None = None,
n_runs_per_world: int = 1,
min_factories_per_level: int = 4,
tournament_path: str | None = None,
tournament_path: str | Path | None = None,
total_timeout: int | None = None,
parallelism="parallel",
scheduler_ip: str | None = None,
Expand Down Expand Up @@ -3050,7 +3051,7 @@ def anac2024_oneshot(
max_worlds_per_config: int | None = None,
n_runs_per_world: int = 1,
min_factories_per_level: int = 4,
tournament_path: str | None = None,
tournament_path: str | Path | Path | None = None,
total_timeout: int | None = None,
parallelism="parallel",
scheduler_ip: str | None = None,
Expand Down

0 comments on commit 42eb5d1

Please sign in to comment.