summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-11-11 16:28:30 (GMT)
committerGitHub <noreply@github.com>2024-11-11 16:28:30 (GMT)
commit79805d228440814c0674ab5190ef17f235503d2e (patch)
tree8cb9b29278e2638af831f543b6ccbe98fbd43362 /Misc
parent819830f34a11ecaa3aada174ca8eedeb3f260630 (diff)
downloadcpython-79805d228440814c0674ab5190ef17f235503d2e.zip
cpython-79805d228440814c0674ab5190ef17f235503d2e.tar.gz
cpython-79805d228440814c0674ab5190ef17f235503d2e.tar.bz2
gh-117941: Reject option names starting with "--no-" in argparse.BooleanOptionalAction (GH-125894)
They never worked correctly.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2024-10-23-20-44-30.gh-issue-117941.Y9jdlW.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-10-23-20-44-30.gh-issue-117941.Y9jdlW.rst b/Misc/NEWS.d/next/Library/2024-10-23-20-44-30.gh-issue-117941.Y9jdlW.rst
new file mode 100644
index 0000000..9c2553f
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2024-10-23-20-44-30.gh-issue-117941.Y9jdlW.rst
@@ -0,0 +1,2 @@
+:class:`!argparse.BooleanOptionalAction` now rejects option names starting
+with ``--no-``.