Skip to content
Myr

remove deprecated Group.resultcallback

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 4b4e2bd · Browse files · 2 files+4 added−11 removed
This commit

State

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

Diff stats

2 files+4 added−11 removed

  • other:+4 added−11 removed

2 files+4 added−11 removed

modified:src/click/core.py-11 removed
1566 unmodified lines
1567 return rv15681569 return decorator15701571 def resultcallback(self, replace: bool = False) -> t.Callable[[F], F]:1572 import warnings15731574 warnings.warn(1575 "'resultcallback' has been renamed to 'result_callback'."1576 " The old name will be removed in Click 8.1.",1577 DeprecationWarning,1578 stacklevel=2,1579 )1580 return self.result_callback(replace=replace)15811571 def format_commands(self, ctx: Context, formatter: HelpFormatter) -> None:1572 """Extra format methods for multi methods that adds all the commands1573 after the options.1574 """
1375 unmodified lines
modified:CHANGES.rst+4 added
4 unmodified lines
56Unreleased78- Drop support for Python 3.6. :pr:`2129`9- Remove previously deprecated code. :pr:`2130`1011 - ``Group.resultcallback`` is renamed to ``result_callback``.1213- Single options boolean flags with ``show_default=True`` only show14 the default if it is ``True``. :issue:`1971`1516
941 unmodified lines