]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-61011: Fix inheritance of nested mutually exclusive groups in argparse...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 11 Oct 2024 09:07:03 +0000 (11:07 +0200)
committerGitHub <noreply@github.com>
Fri, 11 Oct 2024 09:07:03 +0000 (09:07 +0000)
commit23cefd9f4c9e49fbdef50b7deaf76499760e4c4b
treeb478534d59655fee19b33322933440fd19578c47
parent4c40381023df1319661b27f4ab65075569532c73
[3.12] gh-61011: Fix inheritance of nested mutually exclusive groups in argparse (GH-125210) (GH-125309)

Previously, all nested mutually exclusive groups lost their connection
to the group containing them and were displayed as belonging directly
to the parser.

(cherry picked from commit 18c74497681e0107d7cde53e63ea42feb38f2176)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Danica J. Sutherland <djsutherland@users.noreply.github.com>
Lib/argparse.py
Lib/test/test_argparse.py
Misc/ACKS
Misc/NEWS.d/next/Library/2024-10-09-21-42-43.gh-issue-61011.pQXZb1.rst [new file with mode: 0644]