mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-40862: Raise TypeError when const is given to argparse.BooleanOptionalAction (GH-20623)
This commit is contained in:
parent
45af786e11
commit
b084d1b97e
2 changed files with 8 additions and 1 deletions
|
@ -857,7 +857,6 @@ class BooleanOptionalAction(Action):
|
|||
def __init__(self,
|
||||
option_strings,
|
||||
dest,
|
||||
const=None,
|
||||
default=None,
|
||||
type=None,
|
||||
choices=None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue