-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Raise exception when nesting argument groups and mutually exclusive groups #127133
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
Labels
stdlib
Python modules in the Lib dir
Comments
savannahostrowski
added a commit
to savannahostrowski/cpython
that referenced
this issue
Nov 23, 2024
iritkatriel
pushed a commit
that referenced
this issue
Nov 24, 2024
sicherha
added a commit
to sicherha/powerline
that referenced
this issue
Jan 10, 2025
Nesting argument groups was deprecated in Python 3.11 and will be removed in the upcoming Python 3.14: python/cpython#127133 Trying to add a nested group will trigger a `ValueError`. To prepare the code for Python 3.14, remove the nested groups and add all arguments at the top level. The mutual exclusion between `--kill` and `--foreground`/`--replace` is already checked separately within the `main()` function in `scripts/powerline-daemon`, so the user-observable behaviour remains unchanged.
ebonnal
pushed a commit
to ebonnal/cpython
that referenced
this issue
Jan 12, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: