-
-
Notifications
You must be signed in to change notification settings - Fork 530
Python 3.14: TypeError: HelpFormatter.__init__() got an unexpected keyword argument 'prefix_chars' #3523
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
Comments
The-Compiler
added a commit
to The-Compiler/tox
that referenced
this issue
May 8, 2025
python/cpython#132323 passes prefix_chars= (and other arguments) to the formatter_class, but the custom HelpFormatter only accepted prog=. Accept any keyword arguments and pass them on to the parent class. Fixes tox-dev#3523
5 tasks
The-Compiler
added a commit
to The-Compiler/tox
that referenced
this issue
May 8, 2025
python/cpython#132323 passes prefix_chars= (and other arguments) to the formatter_class, but the custom HelpFormatter only accepted prog=. Accept any keyword arguments and pass them on to the parent class. Fixes tox-dev#3523
The-Compiler
added a commit
to qutebrowser/qutebrowser
that referenced
this issue
May 8, 2025
We'll also fix this in CPython for beta 2 (python/cpython#133653), but it's also helpful to if tox makes a (temporary or not) fix to enable testing beta 1, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue
With Python 3.14.0b1, tox immediately fails to start with
TypeError: HelpFormatter.__init__() got an unexpected keyword argument 'prefix_chars'
, because it overridesHelpFormatter
in an incompatible way.This is due to:
argparse
help python/cpython#132323See also:
Environment
Provide at least:
Output of
pip list
of the host Python, wheretox
is installedOutput of running tox
Output of
tox -rvv
The text was updated successfully, but these errors were encountered: