Skip to content
Myr

Changed upgrade note to be more correct.

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

authored by Armin Ronacher · committed by Armin Ronacher · parent 6eeead5 · Browse files · 1 file+3 added−2 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+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:docs/upgrading.rst+3 added-2 removed
14 unmodified lines
15callbacks. Before 2.0 the callback was invoked with ``(ctx, value)``16whereas now it's ``(ctx, param, value)``. This change was necessary as it17otherwise made reusing callbacks too complicated.1819To ease the transition click will still accept old callbacks but it will20issue a warning to stderr to encourage you to upgrade.19To ease the transition click will still accept old callbacks. Starting20with Click 3.0 it will start to issue a warning to stderr to encourage you21to upgrade.2223In case you want to support both click 1.0 and click 2.0 you can make a24simple decorator that adjusts the signatures::25
19 unmodified lines