From f067f69759839b62141b800969272cddb9ccb2b0 Mon Sep 17 00:00:00 2001 From: Sven Marcus Date: Thu, 27 Jul 2023 13:46:05 +0200 Subject: [PATCH] Use old style type hint --- hpcrocket/cli/_builders.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hpcrocket/cli/_builders.py b/hpcrocket/cli/_builders.py index be97145..1d508c5 100644 --- a/hpcrocket/cli/_builders.py +++ b/hpcrocket/cli/_builders.py @@ -1,7 +1,7 @@ import argparse import functools import os -from typing import Any, Dict, List, Optional, Protocol, Union, cast +from typing import Any, Dict, List, Optional, Protocol, Tuple, Union, cast from hpcrocket.core.filesystem import Filesystem from hpcrocket.core.filesystem.progressive import CopyInstruction @@ -68,7 +68,7 @@ def build_launch_options( ) -def parse_sbatch(yaml_config: Dict[str, Any]) -> tuple[str, Optional[CopyInstruction]]: +def parse_sbatch(yaml_config: Dict[str, Any]) -> Tuple[str, Optional[CopyInstruction]]: sbatch: Union[str, Dict[str, str]] = yaml_config["sbatch"] if isinstance(sbatch, str): return sbatch, None