From daae0c7980b9995555185eac5f6486ecf4bdff11 Mon Sep 17 00:00:00 2001 From: Christian Haudum Date: Sat, 15 Sep 2018 22:05:15 +0200 Subject: [PATCH] Allow any keyword argument in argparse add_argument() method (#2460) Closes #2457 --- stdlib/2and3/argparse.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stdlib/2and3/argparse.pyi b/stdlib/2and3/argparse.pyi index 23ea2c08b..4871afb32 100644 --- a/stdlib/2and3/argparse.pyi +++ b/stdlib/2and3/argparse.pyi @@ -63,7 +63,8 @@ class _ActionsContainer: help: Optional[_Text] = ..., metavar: Union[_Text, Tuple[_Text, ...]] = ..., dest: Optional[_Text] = ..., - version: _Text = ...) -> Action: ... + version: _Text = ..., + **kwargs: Any) -> Action: ... def add_argument_group(self, *args: Any, **kwargs: Any) -> _ArgumentGroup: ... def add_mutually_exclusive_group(self, **kwargs: Any) -> _MutuallyExclusiveGroup: ... def _add_action(self, action: _ActionT) -> _ActionT: ...