Skip to content

Commit

Permalink
fix typings for __main__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubh Bapna committed Jul 25, 2024
1 parent 2d77f37 commit 588a124
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fromager/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
)
@click.pass_context
def main(
ctx,
ctx: click.Context,
verbose: bool,
log_file: pathlib.Path,
error_log_file: pathlib.Path,
Expand All @@ -114,7 +114,7 @@ def main(
cleanup: bool,
variant: str,
jobs: int,
):
) -> None:
# Set the overall logger level to debug and allow the handlers to filter
# messages at their own level.
logging.getLogger().setLevel(logging.DEBUG)
Expand Down Expand Up @@ -171,7 +171,7 @@ def main(
main.add_command(cmd)


def invoke_main():
def invoke_main() -> None:
# Wrapper for the click main command that ensures any exceptions
# are logged so that build pipeline outputs include the traceback.
try:
Expand Down

0 comments on commit 588a124

Please sign in to comment.