Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise exception when nesting argument groups and mutually exclusive groups #127133

Closed
savannahostrowski opened this issue Nov 22, 2024 · 0 comments · Fixed by #127186
Closed

Raise exception when nesting argument groups and mutually exclusive groups #127133

savannahostrowski opened this issue Nov 22, 2024 · 0 comments · Fixed by #127186
Assignees
Labels
stdlib Python modules in the Lib dir

Comments

@savannahostrowski
Copy link
Member

savannahostrowski commented Nov 22, 2024

The ability to nest argument groups and mutually exclusive groups was deprecated in 3.11 via #30098.

At present, we raise warnings to let users know this has been deprecated. I'd like to remove the logic since we're now two (going on three) releases from initial deprecation, and doing so will also simplify the logic to support new features, like #55797.

Linked PRs

@savannahostrowski savannahostrowski added the stdlib Python modules in the Lib dir label Nov 22, 2024
@savannahostrowski savannahostrowski self-assigned this Nov 22, 2024
savannahostrowski added a commit to savannahostrowski/cpython that referenced this issue Nov 23, 2024
@savannahostrowski savannahostrowski changed the title Remove the (deprecated) ability to nest argument groups and mutually exclusive groups Raise exception when nesting argument groups and mutually exclusive groups Nov 24, 2024
@savannahostrowski savannahostrowski moved this to Features in Argparse issues Nov 24, 2024
@savannahostrowski savannahostrowski moved this from Features to Bugs in Argparse issues Nov 24, 2024
@github-project-automation github-project-automation bot moved this from Bugs to Doc issues in Argparse issues Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir
Projects
Status: Doc issues
1 participant