Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up[BUG] typer.main.get_group should return a click.Group #96
Labels
Comments
This was referenced Jun 10, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The function
typer.main.get_groupis annotated as returning aclick.Commandwhich isn't wrong because aclick.Groupis aclick.Command, but means I have to cast to group when trying to integrate with existing Click applications.To Reproduce
Steps to reproduce the behavior with a minimum self-contained file.
Replace each part with your own scenario:
main.pywith:Run mypy on this script with
mypy main.pyand it will output something likeExpected behavior
Able to drop in Typer at the top level to start slowly converting an existing Click app.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment