Skip to content

Commit 366b0c1

Browse files
authored
Fix TypeError on nightly builds (#162)
1 parent 31329d7 commit 366b0c1

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
[PR-160](https://github.com/hamdanal/rich-argparse/pull/160)
88
Python 3.8 is no longer supported (EOL since 7/10/2024)
99

10+
### Fixes
11+
- [PR-162](https://github.com/hamdanal/rich-argparse/pull/162)
12+
Fix TypeError on nightly builds (Python 3.14.0a7+) due to new `HelpFormatter` arguments.
13+
The `console` parameter is now keyword-only.
14+
1015
## 1.7.0 - 2025-02-08
1116

1217
### Features

rich_argparse/_argparse.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,11 @@ def __init__(
8282
indent_increment: int = 2,
8383
max_help_position: int = 24,
8484
width: int | None = None,
85+
*,
8586
console: r.Console | None = None,
87+
**kwargs: Any,
8688
) -> None:
87-
super().__init__(prog, indent_increment, max_help_position, width)
89+
super().__init__(prog, indent_increment, max_help_position, width, **kwargs)
8890
self._console = console
8991

9092
# https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting

0 commit comments

Comments
 (0)