You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The @command decorator is annotated as always returning Command.
This is a problem when supplying custom class, e.g.:
@click.command(cls=MyClass)deffoo():
...
reveal_type(foo) # revealed type is `Command`foo.my_property=6# error: `Command` does not have a member `my_property`
Environment:
Python version: any
Click version: 8.x
The text was updated successfully, but these errors were encountered:
The
@command
decorator is annotated as always returningCommand
.This is a problem when supplying custom class, e.g.:
Environment:
The text was updated successfully, but these errors were encountered: