]> 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:27:17 +0000 (08:27 -0700)
committerGitHub <noreply@github.com>
Thu, 28 Apr 2022 15:27:17 +0000 (08:27 -0700)
commit11652ceccf1dbf9dd332ad52ac9bd41b4adff274
tree737454cf026f256fcc188d6cc14d290f7f6ae3b4
parente25799d27d049237849c471b25db3b128b1bfa08
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]