Skip to content
Myr

don't process doc in command decorator

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent dfae0a1 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/click/decorators.py+1 added-1 removed
186 unmodified lines
187 params.reverse()188 del f.__click_params__ # type: ignore189190 if attrs.get("help") is None:191 attrs["help"] = inspect.getdoc(f)191 attrs["help"] = f.__doc__192193 cmd = cls( # type: ignore[misc]194 name=name or f.__name__.lower().replace("_", "-"), # type: ignore[arg-type]195 callback=f,
282 unmodified lines