mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Merge pull request #115 from mr-c/patch-3
Allow adding custom argparse.Actions in add_argument
This commit is contained in:
@@ -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 = ...,
|
||||
|
||||
@@ -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 = ...,
|
||||
|
||||
Reference in New Issue
Block a user