diff --git a/main.py b/main.py index c380f10..9e424d6 100755 --- a/main.py +++ b/main.py @@ -6,7 +6,6 @@ import sys import urllib.error import urllib.request -from typing import Dict, Tuple def exit_error(message: str): @@ -18,7 +17,7 @@ def mask_value(value: str): print("::add-mask::" + value) -def read_inputs() -> Tuple[str, str, str, str, str, str, str]: +def read_inputs() -> tuple[str, str, str, str, str, str, str]: def _env(key: str) -> str: return os.environ.get(key, "").strip() @@ -113,8 +112,8 @@ def aws_sts_assume_role( role_session_name: str, role_duration: str, web_identity_token: str = "", - env_var_collection: Dict[str, str] = {}, -) -> Tuple[str, str, str]: + env_var_collection: dict[str, str] = {}, +) -> tuple[str, str, str]: # build command argument list and environment variables to pass arg_list = [ "aws",