New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] typer.main.get_group should return a click.Group #96
Labels
Comments
|
@tiangolo could i take this up? |
alexreg
added a commit
to alexreg/typer
that referenced
this issue
May 12, 2022
Resolves issue tiangolo#96.
alexreg
added a commit
to alexreg/typer
that referenced
this issue
May 13, 2022
Resolves issue tiangolo#96.
alexreg
added a commit
to alexreg/typer
that referenced
this issue
May 13, 2022
Resolves issue tiangolo#96.
alexreg
added a commit
to alexreg/typer
that referenced
this issue
May 13, 2022
Resolves issue tiangolo#96.
alexreg
added a commit
to alexreg/typer
that referenced
this issue
May 13, 2022
Resolves issue tiangolo#96.
alexreg
added a commit
to alexreg/typer
that referenced
this issue
May 15, 2022
Resolves issue tiangolo#96.
alexreg
added a commit
to alexreg/typer
that referenced
this issue
May 15, 2022
Resolves issue tiangolo#96.
alexreg
added a commit
to alexreg/typer
that referenced
this issue
Jun 17, 2022
Resolves issue tiangolo#96.
alexreg
added a commit
to alexreg/typer
that referenced
this issue
Jul 2, 2022
Resolves issue tiangolo#96.
alexreg
added a commit
to alexreg/typer
that referenced
this issue
Jul 9, 2022
Resolves issue tiangolo#96.
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
The text was updated successfully, but these errors were encountered: