Skip to content

Commit

Permalink
Convert typing hints to support python 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasjacobsen committed Apr 5, 2024
1 parent e0c3eda commit 5e026a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/ramble/ramble/workload.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# option. This file may not be copied, modified, or distributed
# except according to those terms.

from typing import List
import ramble.util.colors as rucolor


Expand Down Expand Up @@ -113,8 +114,8 @@ def as_str(self, n_indent: int = 0):
class Workload(object):
"""Class representing a single workload"""

def __init__(self, name: str, executables: list[str],
inputs: list[str] = [], tags: list[str] = []):
def __init__(self, name: str, executables: List[str],
inputs: List[str] = [], tags: List[str] = []):
"""Constructor for a workload
Args:
Expand Down

0 comments on commit 5e026a1

Please sign in to comment.