]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-91832: Add 'required' attr to argparse.Action repr (GH-91841)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 28 Apr 2022 15:19:07 +0000 (08:19 -0700)
committerGitHub <noreply@github.com>
Thu, 28 Apr 2022 15:19:07 +0000 (08:19 -0700)
commitfa87c362e1861aa1092c1dcd409b00ae25db7874
tree000b77069ed3c60a741b0abce5c31aeaa806ca2d
parent0e16105af69ec33e1215e0543f26a33bc8d10a16
gh-91832: Add 'required' attr to argparse.Action repr (GH-91841)

GH- Adding 'required' to names in Lib.argparse.Action

gh-91832:
Added 'required' to the list `names` in `Lib.argparse.Action`.
Changed constant strings that test the Action object.

Automerge-Triggered-By: GH:merwok
(cherry picked from commit 4ed3900041c688a02dca1eb3323083d720dd0d93)

Co-authored-by: Abhigyan Bose <abhigyandeepbose@gmail.com>
Lib/argparse.py
Lib/test/test_argparse.py
Misc/NEWS.d/next/Library/2022-04-23-03-24-00.gh-issue-91832.TyLi65.rst [new file with mode: 0644]