Skip to content

Commit ed0e485

Browse files
committed
Fix argparse for Python 3.14
1 parent 7f5a8dd commit ed0e485

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mypy/dmypy/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929

3030

3131
class AugmentedHelpFormatter(argparse.RawDescriptionHelpFormatter):
32-
def __init__(self, prog: str) -> None:
33-
super().__init__(prog=prog, max_help_position=30)
32+
def __init__(self, prog: str, **kwargs: Any) -> None:
33+
super().__init__(prog=prog, max_help_position=30, **kwargs)
3434

3535

3636
parser = argparse.ArgumentParser(

mypy/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ def show_messages(
249249

250250
# Make the help output a little less jarring.
251251
class AugmentedHelpFormatter(argparse.RawDescriptionHelpFormatter):
252-
def __init__(self, prog: str) -> None:
253-
super().__init__(prog=prog, max_help_position=28)
252+
def __init__(self, prog: str, **kwargs: Any) -> None:
253+
super().__init__(prog=prog, max_help_position=28, **kwargs)
254254

255255
def _fill_text(self, text: str, width: int, indent: str) -> str:
256256
if "\n" in text:

0 commit comments

Comments
 (0)