Merge pull request #115 from mr-c/patch-3

Allow adding custom argparse.Actions in add_argument
This commit is contained in:
Guido van Rossum
2016-03-14 09:53:13 -07:00
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 = ...,