Allow custom actions

This commit is contained in:
Michael R. Crusoe
2016-03-14 14:41:08 +01:00
committed by Michael R. Crusoe
parent 5e0c61f8e0
commit e0a3fd2a5f
2 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any, Sequence
from typing import Any, Sequence, Union
SUPPRESS = ... # type: Any
OPTIONAL = ... # type: Any
@@ -125,7 +125,7 @@ class _ActionsContainer:
def get_default(self, dest): ...
def add_argument(self,
*args: str,
action: str = ...,
action: Union[str, Action] = ...,
nargs: str = ...,
const: Any = ...,
default: Any = ...,

View File

@@ -2,7 +2,7 @@
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any, Sequence
from typing import Any, Sequence, Union
SUPPRESS = ... # type: Any
OPTIONAL = ... # type: Any
@@ -118,7 +118,7 @@ class _ActionsContainer:
def get_default(self, dest): ...
def add_argument(self,
*args: str,
action: str = ...,
action: Union[str, Action] = ...,
nargs: str = ...,
const: Any = ...,
default: Any = ...,