-
-
Notifications
You must be signed in to change notification settings - Fork 533
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! |
See also pypa/virtualenv#2878 which fixes the same in virtualenv. |
bdarnell
added a commit
to bdarnell/tornado
that referenced
this issue
May 12, 2025
Tox doesn't need to be the same python version as the one being tested. This works around Tox's current incompatibility with Python 3.14b1. It will probably be reverted after that is fixed so we no longer need to install two versions of python. See tox-dev/tox#3523
bdarnell
added a commit
to bdarnell/tornado
that referenced
this issue
May 12, 2025
Tox doesn't need to be the same python version as the one being tested. This works around Tox's current incompatibility with Python 3.14b1. It will probably be reverted after that is fixed so we no longer need to install two versions of python. See tox-dev/tox#3523
mxr
added a commit
to mxr/sqlite-export-for-ynab
that referenced
this issue
May 13, 2025
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: