Skip to content

Commit

Permalink
Use old style type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenMarcus committed Jul 27, 2023
1 parent 124b373 commit f067f69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hpcrocket/cli/_builders.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f067f69

Please sign in to comment.