Skip to content

Commit 2c366c0

Browse files
authored
[argparse] Add default value _SubParsersAction.add_parser params (#14429)
1 parent 611cba3 commit 2c366c0

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

stdlib/argparse.pyi

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -762,9 +762,9 @@ class _SubParsersAction(Action, Generic[_ArgumentParserT]):
762762
fromfile_prefix_chars: str | None = ...,
763763
argument_default: Any = ...,
764764
conflict_handler: str = ...,
765-
add_help: bool = ...,
766-
allow_abbrev: bool = ...,
767-
exit_on_error: bool = ...,
765+
add_help: bool = True,
766+
allow_abbrev: bool = True,
767+
exit_on_error: bool = True,
768768
suggest_on_error: bool = False,
769769
color: bool = False,
770770
**kwargs: Any, # Accepting any additional kwargs for custom parser classes
@@ -788,9 +788,9 @@ class _SubParsersAction(Action, Generic[_ArgumentParserT]):
788788
fromfile_prefix_chars: str | None = ...,
789789
argument_default: Any = ...,
790790
conflict_handler: str = ...,
791-
add_help: bool = ...,
792-
allow_abbrev: bool = ...,
793-
exit_on_error: bool = ...,
791+
add_help: bool = True,
792+
allow_abbrev: bool = True,
793+
exit_on_error: bool = True,
794794
**kwargs: Any, # Accepting any additional kwargs for custom parser classes
795795
) -> _ArgumentParserT: ...
796796
else:
@@ -811,9 +811,9 @@ class _SubParsersAction(Action, Generic[_ArgumentParserT]):
811811
fromfile_prefix_chars: str | None = ...,
812812
argument_default: Any = ...,
813813
conflict_handler: str = ...,
814-
add_help: bool = ...,
815-
allow_abbrev: bool = ...,
816-
exit_on_error: bool = ...,
814+
add_help: bool = True,
815+
allow_abbrev: bool = True,
816+
exit_on_error: bool = True,
817817
**kwargs: Any, # Accepting any additional kwargs for custom parser classes
818818
) -> _ArgumentParserT: ...
819819

0 commit comments

Comments
 (0)