]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-80259: Fix conflict between type and default=SUPPRESS in argparse (GH-12451...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 29 Sep 2024 08:17:08 +0000 (10:17 +0200)
committerGitHub <noreply@github.com>
Sun, 29 Sep 2024 08:17:08 +0000 (08:17 +0000)
commitbdcdb0ac7f1a921273927572124aab29f5539115
treea0b5668c5f945095ec19df9265bc160ee2c03986
parent00fd32af21a3ff371cf12a509b324de9602af894
[3.12] gh-80259: Fix conflict between type and default=SUPPRESS in argparse (GH-124519) (GH-124752)

type() no longer called for SUPPRESS.

This only affects positional arguments with nargs='?'.
(cherry picked from commit 9bcadf589ab6f7b9d309290de7a80156b6905d35)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/argparse.py
Lib/test/test_argparse.py
Misc/NEWS.d/next/Library/2024-09-25-18-08-29.gh-issue-80259.kO5Tw7.rst [new file with mode: 0644]