Param decorators assume attrs[key] is not None
just because key in attrs
#1959
Milestone
attrs[key] is not None
just because key in attrs
#1959
The following lines cause a
TypeError
if one providehelp=None
:click/src/click/decorators.py
Lines 244 to 245 in 8b48450
By the way, why is
cleandoc
called by the decorator and not byOption
itself? The docstring says "all keyword arguments are forwarded unchanged (exceptcls
)".The same problem appears when passing
cls=None
(also with@argument
):click/src/click/decorators.py
Lines 246 to 247 in 8b48450
I encountered this problem while writing a wrapper for the above decorators that explicitly list arguments for a better IDE support.
The text was updated successfully, but these errors were encountered: