Replies: 1 comment
-
same problem |
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
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
I used to use click and frequently use
click.pass_obj
since I do not use other features inContext
. I usually type my object in the command definition like this:In Typer, I would have to do this:
I believe it would be better if I can still specify object type in type annotation. Making
typing.Conext
generic might be a solution.Operating System
Windows
Operating System Details
No response
Typer Version
0.13.1
Python Version
3.12
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions