Skip to content

Commit 1d4ebfe

Browse files
committed
Fix mypy error
1 parent 400b3da commit 1d4ebfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vec_inf/client/_slurm_vars.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ def load_yaml_config(path: Path) -> dict[str, Any]:
6666
MAX_CPUS_PER_TASK = _config["limits"]["max_cpus_per_task"]
6767

6868
# Create dynamic Literal types
69-
QOS = Literal[tuple(_config["allowed_values"]["qos"])] # type: ignore[valid-type]
70-
PARTITION = Literal[tuple(_config["allowed_values"]["partition"])] # type: ignore[valid-type]
69+
QOS: TypeAlias = Literal[tuple(_config["allowed_values"]["qos"])] # type: ignore[valid-type]
70+
PARTITION: TypeAlias = Literal[tuple(_config["allowed_values"]["partition"])] # type: ignore[valid-type]
7171

7272
# Extract default arguments
7373
DEFAULT_ARGS = _config["default_args"]

0 commit comments

Comments
 (0)