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
Click throws an assertion error if you try to use the parameterless command decorator on a group with a command_class defined. The error is due to the command_class being added to kwargs before the assertion for no kwargs.
ewilliamson@ip-192-168-50-39 ~ % python minimal_repro.py
Traceback (most recent call last):
File "/Users/ewilliamson/minimal_repro.py", line 14, in <module>
def cli():
File "/Users/ewilliamson/.pyenv/versions/3.10.7/lib/python3.10/site-packages/click/core.py", line 1847, in command
assert (
AssertionError: Use 'command(**kwargs)(callable)' to provide arguments.
expected
The @grp.command would be successfully parsed the same as without using CustomGroup
Environment:
Python version: Python 3.10.7
Click version: click==8.1.3
The text was updated successfully, but these errors were encountered:
Click throws an assertion error if you try to use the parameterless command decorator on a group with a command_class defined. The error is due to the command_class being added to kwargs before the assertion for no kwargs.
minimal repro
error
expected
The
@grp.command
would be successfully parsed the same as without usingCustomGroup
Environment:
Python 3.10.7
click==8.1.3
The text was updated successfully, but these errors were encountered: