diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2021-08-19 16:32:59 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2021-08-19 16:32:59 -0400 |
commit | 5e80dfead1844a09af6fa242c7bdaa99e39ce2d2 (patch) | |
tree | 0045a6f50d21ae335eb445ff9b6baaa79f16eb7e | |
parent | 8ba05ef8bcdd53bdd54999cc9885ab310b766d9c (diff) | |
parent | 6d771e96c0507d9ef4ad3eaaf4bc83669396e591 (diff) | |
download | cmd2-git-5e80dfead1844a09af6fa242c7bdaa99e39ce2d2.tar.gz |
Merge branch 'master' into topic_width
-rw-r--r-- | CHANGELOG.md | 2 | ||||
-rw-r--r-- | cmd2/argparse_custom.py | 25 |
2 files changed, 2 insertions, 25 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f8f840a..1e117b17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ * macro tab completion * Tab completion of `CompletionItems` now includes divider row comprised of `Cmd.ruler` character. * Removed `--verbose` flag from set command since descriptions always show now. +* 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 diff --git a/cmd2/argparse_custom.py b/cmd2/argparse_custom.py index faeb0789..d6e89989 100644 --- a/cmd2/argparse_custom.py +++ b/cmd2/argparse_custom.py @@ -529,31 +529,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]: |