]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-80259: Fix conflict between type and default=SUPPRESS in argparse (GH-12451...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 7 Oct 2024 21:26:00 +0000 (23:26 +0200)
committerGitHub <noreply@github.com>
Mon, 7 Oct 2024 21:26:00 +0000 (00:26 +0300)
commitf28906e58e003c3eb52db6f3f68e110263fb08c8
treee63842225cee62998bd259dda3a686511ebe756d
parentaa648c21e982c142d24471f4d4b52127402904f6
[3.13] gh-80259: Fix conflict between type and default=SUPPRESS in argparse (GH-124519) (GH-124751)

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]