summaryrefslogtreecommitdiffstats
path: root/Lib/argparse.py
diff options
context:
space:
mode:
authorRĂ©mi Lapeyre <remi.lapeyre@lenstra.fr>2020-06-05 22:00:42 (GMT)
committerGitHub <noreply@github.com>2020-06-05 22:00:42 (GMT)
commitb084d1b97e369293d2d2bc0791e2135822c923a8 (patch)
treec1a7fe68ed0a24fe04baf7a7a6ce02c0bb485d52 /Lib/argparse.py
parent45af786e111aed5f687e1f0d8b45b6a5e678a6bc (diff)
downloadcpython-b084d1b97e369293d2d2bc0791e2135822c923a8.zip
cpython-b084d1b97e369293d2d2bc0791e2135822c923a8.tar.gz
cpython-b084d1b97e369293d2d2bc0791e2135822c923a8.tar.bz2
bpo-40862: Raise TypeError when const is given to argparse.BooleanOptionalAction (GH-20623)
Diffstat (limited to 'Lib/argparse.py')
-rw-r--r--Lib/argparse.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/argparse.py b/Lib/argparse.py
index 2677ef6..2fb1da5 100644
--- a/Lib/argparse.py
+++ b/Lib/argparse.py
@@ -857,7 +857,6 @@ class BooleanOptionalAction(Action):
def __init__(self,
option_strings,
dest,
- const=None,
default=None,
type=None,
choices=None,