Skip to content
Myr

🎨 Update types and errors, comment ty for now (#1531)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sebastián Ramírez · committed by GitHub · parent a7cacb1 · Browse files · 2 files+7 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+7 added−7 removed

  • other:+7 added−7 removed

2 files+7 added−7 removed

modified:typer/cli.py+1 added-1 removed
81 unmodified lines
82 if state.func:83 func_obj = getattr(module, state.func, None)84 if not callable(func_obj):85 typer.echo(f"Not a function: --func {state.func}", err=True)86 sys.exit(1)86 raise typer.Exit(1)87 sub_app = typer.Typer()88 sub_app.command()(func_obj)89 return sub_app90 # Iterate and get a default object to use as CLI
227 unmodified lines
modified:.pre-commit-config.yaml+6 added-6 removed