where to find definition of .add_command() used in tutorial? #666
Unanswered
tan-wei-xin-alez
asked this question in
Questions
Replies: 1 comment
-
Also, is there an easy way to replace the use of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
The code above from the Including a Click app in a Typer app tutorial works fine except pyright complains about
typer_click_object.add_command(hello, "hello")
Where do I find the definition for
.add_command()
?My editor (nvim) can't find the source for it (works fine with other methods such as
.get_command()
) and searching the repo only yields that method in the documentationI've also checked the source for the
click.Command
class but obviously that doesn't contain the method eitherOperating System
Linux
Operating System Details
No response
Typer Version
0.9.0
Python Version
Python 3.11.3
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions