summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2021-08-19 15:59:01 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2021-08-19 16:30:43 -0400
commit6d771e96c0507d9ef4ad3eaaf4bc83669396e591 (patch)
tree7b2d4243d3e61d5d9820bab805cccd8db84094b1
parent36bf4aceca071236256dbc33db4e6c67c51d10b6 (diff)
downloadcmd2-git-6d771e96c0507d9ef4ad3eaaf4bc83669396e591.tar.gz
Deleted set_choices_provider() and set_completer() which were deprecated in 2.1.2
-rw-r--r--CHANGELOG.md4
-rw-r--r--cmd2/argparse_custom.py25
2 files changed, 4 insertions, 25 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 06db3f6d..a782f55f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 2.2.0 (TBD, 2021)
+* Deletions (potentially breaking changes)
+ * Deleted ``set_choices_provider()`` and ``set_completer()`` which were deprecated in 2.1.2
+
## 2.1.2 (July 5, 2021)
* Enhancements
* Added the following accessor methods for cmd2-specific attributes to the `argparse.Action` class
diff --git a/cmd2/argparse_custom.py b/cmd2/argparse_custom.py
index 8d0630fe..770b1e5c 100644
--- a/cmd2/argparse_custom.py
+++ b/cmd2/argparse_custom.py
@@ -528,31 +528,6 @@ setattr(argparse.Action, 'set_completer', _action_set_completer)
############################################################################################################
-# Deprecated wrappers
-############################################################################################################
-def set_choices_provider(action: argparse.Action, choices_provider: ChoicesProviderFunc) -> None: # pragma: no cover
- import warnings
-
- warnings.warn(
- 'This function will be deprecated in version 2.2.0. Use `action.set_choices_provider(choices_provider)` instead.',
- PendingDeprecationWarning,
- stacklevel=2,
- )
- action.set_choices_provider(choices_provider) # type: ignore[attr-defined]
-
-
-def set_completer(action: argparse.Action, completer: CompleterFunc) -> None: # pragma: no cover
- import warnings
-
- warnings.warn(
- 'This function will be deprecated in version 2.2.0. Use `action.set_completer(completer)` instead.',
- PendingDeprecationWarning,
- stacklevel=2,
- )
- action.set_completer(completer) # type: ignore[attr-defined]
-
-
-############################################################################################################
# Patch argparse.Action with accessors for descriptive_header attribute
############################################################################################################
def _action_get_descriptive_header(self: argparse.Action) -> Optional[str]: