Fix default value for flags with multiple=True#2247
Fix default value for flags with multiple=True#2247amyreese wants to merge 1 commit intopallets:8.1.xfrom
Conversation
|
I'm happy to add the changes documentation, just wasn't sure what wording would be preferred for that. |
|
Looking at this example, I'm not sure this was ever intended? You should use |
Hmm, I was just trying to test count, and got this error message:
Perhaps it would be better to explicitly disallow |
|
Yes, that seems better. |
|
Opened #2248 with alternative change. |
|
Well, in the end I decided to go with this solution instead, see #2550 😅 |
Sets a default value (empty tuple) for flags with
multiple=True. Adds a test case (that fails on 8.1.2) to help prevent future regression.Fixes #2246
Checklist:
CHANGES.rstsummarizing the change and linking to the issue... versionchanged::entries in any relevant code docs.pre-commithooks and fix any issues.pytestandtox, no tests failed.