summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2021-11-10 16:38:53 -0800
committerDavid Lord <davidism@gmail.com>2021-11-10 16:38:53 -0800
commitf00d15eeeaf4d789ac6a7840c43fb54aabe7fe3f (patch)
tree56c7edc11bf36023ecf1bc973e2af2106b9e5908
parent4b4e2bdab832c1e970b9acc1cd2ead101d6e0308 (diff)
downloadclick-f00d15eeeaf4d789ac6a7840c43fb54aabe7fe3f.tar.gz
remove deprecated Group.resultcallback
-rw-r--r--CHANGES.rst4
-rw-r--r--src/click/core.py11
2 files changed, 4 insertions, 11 deletions
diff --git a/CHANGES.rst b/CHANGES.rst
index eb093fd..7f288fe 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -6,6 +6,10 @@ Version 8.1.0
Unreleased
- Drop support for Python 3.6. :pr:`2129`
+- Remove previously deprecated code. :pr:`2130`
+
+ - ``Group.resultcallback`` is renamed to ``result_callback``.
+
- Single options boolean flags with ``show_default=True`` only show
the default if it is ``True``. :issue:`1971`
diff --git a/src/click/core.py b/src/click/core.py
index 5a4129c..667dcee 100644
--- a/src/click/core.py
+++ b/src/click/core.py
@@ -1568,17 +1568,6 @@ class MultiCommand(Command):
return decorator
- def resultcallback(self, replace: bool = False) -> t.Callable[[F], F]:
- import warnings
-
- warnings.warn(
- "'resultcallback' has been renamed to 'result_callback'."
- " The old name will be removed in Click 8.1.",
- DeprecationWarning,
- stacklevel=2,
- )
- return self.result_callback(replace=replace)
-
def format_commands(self, ctx: Context, formatter: HelpFormatter) -> None:
"""Extra format methods for multi methods that adds all the commands
after the options.