mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-01 09:03:23 +08:00
Allow any keyword argument in argparse add_argument() method (#2460)
Closes #2457
This commit is contained in:
committed by
Sebastian Rittau
parent
9e72a7fd0c
commit
daae0c7980
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user