Skip to content

Commit

Permalink
Use Never from typing
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz authored Oct 9, 2024
1 parent 92600c6 commit 3b6e966
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/awx_plugins/credentials/aws_assumerole.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@
from .plugin import CredentialPlugin


_aws_cred_cache: dict[str, CredentialsTypeDef |
dict[Never, Never]] | dict[Never, Never] = {}
_aws_cred_cache: dict[
str,
CredentialsTypeDef | dict[typing.Never, typing.Never],
] | dict[typing.Never, typing.Never] = {}


assume_role_inputs = {
Expand Down Expand Up @@ -77,7 +79,7 @@ def aws_assumerole_getcreds(
secret_key: str | None,
role_arn: str | None,
external_id: int,
) -> CredentialsTypeDef | dict[Never, Never]:
) -> CredentialsTypeDef | dict[typing.Never, typing.Never]:
"""Return the credentials for use.
:param access_key: The AWS access key ID.
Expand Down

0 comments on commit 3b6e966

Please sign in to comment.