-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change
Choice.shortcut_key
to property with setter (#349)
* Make `Choice.shortcut_key` property with setter Ensures that `Choice.auto_shortcut` is set to `False` whenever `Choice.shortcut_key` is set to a `str` value and vice versa. Add tests for fix. Fixes #340 Signed-off-by: Ross Williams <[email protected]> * Make Choice.auto_shortcut a property attribute `auto_shortcut` and `shortcut_key` interact in ways that requires logic when setting either, to ensure that they do not conflict. Signed-off-by: Ross Williams <[email protected]> * Update questionary/prompts/common.py --------- Signed-off-by: Ross Williams <[email protected]>
- Loading branch information
1 parent
c64e564
commit f6761e2
Showing
2 changed files
with
70 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters