Skip to content

Commit

Permalink
🎨 Update types
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo committed Mar 30, 2024
1 parent a07a81e commit c5f7802
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions typer/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def get_typer_from_state() -> Optional[typer.Typer]:
module_name = state.file.name
spec = importlib.util.spec_from_file_location(module_name, str(state.file))
elif state.module:
spec = importlib.util.find_spec(state.module) # type: ignore
spec = importlib.util.find_spec(state.module)
if spec is None:
if state.file:
typer.echo(f"Could not import as Python file: {state.file}", err=True)
Expand Down Expand Up @@ -167,7 +167,7 @@ def callback(
False,
"--version",
help="Print version and exit.",
callback=print_version, # type: ignore
callback=print_version,
),
) -> None:
"""
Expand Down

0 comments on commit c5f7802

Please sign in to comment.