Skip to content

Commit 6d26284

Browse files
authored
Fix HelpFormatter for Python 3.14 (#2878)
1 parent 9ee93da commit 6d26284

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/changelog/2878.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix ``HelpFormatter`` error with Python 3.14.0b1.

src/virtualenv/config/cli/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ def parse_known_args(self, args=None, namespace=None):
107107

108108

109109
class HelpFormatter(ArgumentDefaultsHelpFormatter):
110-
def __init__(self, prog) -> None:
111-
super().__init__(prog, max_help_position=32, width=240)
110+
def __init__(self, prog, **kwargs) -> None:
111+
super().__init__(prog, max_help_position=32, width=240, **kwargs)
112112

113113
def _get_help_string(self, action):
114114
text = super()._get_help_string(action)

0 commit comments

Comments
 (0)