summaryrefslogtreecommitdiffstats
path: root/Lib/argparse.py
diff options
context:
space:
mode:
authorAbhigyan Bose <abhigyandeepbose@gmail.com>2022-04-28 14:50:27 (GMT)
committerGitHub <noreply@github.com>2022-04-28 14:50:27 (GMT)
commit4ed3900041c688a02dca1eb3323083d720dd0d93 (patch)
treee28d11b2cf74502aebd9d6c302d41c556b7c4647 /Lib/argparse.py
parent6dcbc08c95cce4630b3bfb53bdb74e2523795555 (diff)
downloadcpython-4ed3900041c688a02dca1eb3323083d720dd0d93.zip
cpython-4ed3900041c688a02dca1eb3323083d720dd0d93.tar.gz
cpython-4ed3900041c688a02dca1eb3323083d720dd0d93.tar.bz2
gh-91832: Add 'required' attr to argparse.Action repr (GH-91841)
# 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
Diffstat (limited to 'Lib/argparse.py')
-rw-r--r--Lib/argparse.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/argparse.py b/Lib/argparse.py
index 429a72a..668e1d4 100644
--- a/Lib/argparse.py
+++ b/Lib/argparse.py
@@ -850,6 +850,7 @@ class Action(_AttributeHolder):
'default',
'type',
'choices',
+ 'required',
'help',
'metavar',
]