Allow a callable default to have its own string representation
Before adoption: this commit came in with the history the project adopted, so no landing records it.
As it was before 78a62b37c956e71b32689a0d5c75a684aa9ab56d. A callable can also be an object with __call__ and __str__ defined, in which case it makes sense to use it. Don't try too hard to show something else instead, because the developer most likely knows what he (or she) is doing. https://github.com/pallets/click/issues/2099
authored by Krzysztof Kotlenga · committed by David Lord · parent 08a825d · Browse files · 3 files+17 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- https: //github.com/pallets/click/issues/2099
Diff stats
3 files+17 added−1 removed
- tests:+13 added−0 removed
- other:+4 added−1 removed