]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-80259: Fix conflict between type and default=SUPPRESS in argparse (GH-124519)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 29 Sep 2024 07:47:06 +0000 (10:47 +0300)
committerGitHub <noreply@github.com>
Sun, 29 Sep 2024 07:47:06 +0000 (10:47 +0300)
commit9bcadf589ab6f7b9d309290de7a80156b6905d35
treee910e672f213c47e4ed7a2949fa9da1c8bfc4487
parent49e105f9488de18d3d92948232fcbd956cbe0c6e
gh-80259: Fix conflict between type and default=SUPPRESS in argparse (GH-124519)

type() no longer called for SUPPRESS.

This only affects positional arguments with nargs='?'.
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]