typer
typer copied to clipboard
Fix type annotation of typer.run
Problem: type annotation of typer.run is
def run(function: Callable[..., Any]) -> Any
However, this function returns None
.
Solution: type annotation of typer.run changes to
def run(function: Callable[..., Any]) -> None
Alternatively, the last line of the function could be return app()
instead of app()
, but this probably isn't necessary.
📝 Docs preview for commit 097a89f468859d306a7e82686cec609b5b371aa6 at: https://6366755339a2407903ea73ce--typertiangolo.netlify.app
Good catch, thanks @yassu! :rocket: