Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/changelog/3523.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix ``TypeError`` for ``HelpFormatter`` with Python 3.14
4 changes: 2 additions & 2 deletions src/tox/config/cli/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ def parse_args( # type: ignore[override] # avoid defining all overloads
class HelpFormatter(ArgumentDefaultsHelpFormatter):
"""A help formatter that provides the default value and the source it comes from."""

def __init__(self, prog: str) -> None:
super().__init__(prog, max_help_position=30, width=240)
def __init__(self, prog: str, **kwargs: Any) -> None:
super().__init__(prog, max_help_position=30, width=240, **kwargs)

def _get_help_string(self, action: Action) -> str | None:
text: str = super()._get_help_string(action) or ""
Expand Down