Allow any keyword argument in argparse add_argument() method (#2460)

Closes #2457
This commit is contained in:
Christian Haudum
2018-09-15 22:05:15 +02:00
committed by Sebastian Rittau
parent 9e72a7fd0c
commit daae0c7980

View File

@@ -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: ...