]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-53834: Fix support of arguments with choices in argparse (GH-124495)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 29 Sep 2024 07:52:52 +0000 (10:52 +0300)
committerGitHub <noreply@github.com>
Sun, 29 Sep 2024 07:52:52 +0000 (10:52 +0300)
commitdac4ec52866e4068f3ac33b4da1e1a1fe6fc2cba
tree46d3f6069071f82e2aa3f70cea511a666e0e84ef
parent61180446eee2aef07b042c7e8892c45afabd1499
gh-53834: Fix support of arguments with choices in argparse (GH-124495)

Positional arguments with nargs equal to '?' or '*' no longer check
default against choices.
Optional arguments with nargs equal to '?' no longer check const
against choices.
Lib/argparse.py
Lib/test/test_argparse.py
Misc/NEWS.d/next/Library/2024-09-25-10-25-57.gh-issue-53834.uyIckw.rst [new file with mode: 0644]