Skip to content

Commit

Permalink
python 3.6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
mtskillman committed Aug 18, 2023
1 parent da671e1 commit 60bb799
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions awsume/awsumepy/lib/aws.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
from __future__ import annotations

import os
import argparse
import dateutil
import json
from typing import Union

import boto3
import botocore
import colorama
from datetime import datetime
import dateutil

from . import profile as profile_lib
from . import cache as cache_lib
from . exceptions import RoleAuthenticationError, UserAuthenticationError
from . logger import logger
from . safe_print import safe_print

from . import profile as profile_lib
from .exceptions import RoleAuthenticationError, UserAuthenticationError
from .logger import logger
from .safe_print import safe_print

DEFAULT_REGION = 'us-east-1'

Expand All @@ -42,7 +37,7 @@ def assume_role(
role_duration: int = None,
mfa_serial: str = None,
mfa_token: str = None,
tags: list | None = None,
tags: Union[list, None] = None,
) -> dict:
if len(session_name) < 2:
session_name = session_name.center(2, '_')
Expand Down

0 comments on commit 60bb799

Please sign in to comment.