Skip to content

Commit

Permalink
Removed the need for typing.Dict and typing.Tuple with Python 3.10,
Browse files Browse the repository at this point in the history
  • Loading branch information
magnetikonline committed Jan 25, 2023
1 parent 72221fe commit 4bc1a72
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import sys
import urllib.error
import urllib.request
from typing import Dict, Tuple


def exit_error(message: str):
Expand All @@ -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()

Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 4bc1a72

Please sign in to comment.