Skip to content

Commit

Permalink
fix: ignore the click decorators for mypy and remove main() call
Browse files Browse the repository at this point in the history
  • Loading branch information
Nr18 committed Jul 11, 2023
1 parent 5ffe2e3 commit d315151
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions aws_iam_login/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
__version__ = "0.3.1"


@click.group(invoke_without_command=True)
@click.group(invoke_without_command=True) # type: ignore
@click.option("--debug/--no-debug")
@click.argument("profile")
@click.pass_context
Expand Down Expand Up @@ -51,7 +51,7 @@ def credentials(ctx: ApplicationContext) -> None:
exit(1)


@main.command()
@main.command() # type: ignore
@click.pass_obj
def init(ctx: ApplicationContext) -> None:
"""
Expand All @@ -69,7 +69,7 @@ def init(ctx: ApplicationContext) -> None:
click.echo(f"The {ctx.profile} profile has been successfully initialized!")


@main.command()
@main.command() # type: ignore
@click.pass_obj
def rotate(ctx: ApplicationContext) -> None:
"""
Expand All @@ -85,7 +85,3 @@ def rotate(ctx: ApplicationContext) -> None:
exit(1)

click.echo(f"Keys successfully rotated for the {ctx.profile} profile")


if __name__ == "__main__":
main(obj={})

0 comments on commit d315151

Please sign in to comment.