mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-08 13:05:14 +08:00
argparse stub fix: values parameter of Action can also be str and None (#388)
* values can be a str, too * values should probably use Sequence
This commit is contained in:
1 parent
f7b35bc8be
commit
4f7c9ce432
1 file changed
+2
-1
@@ -109,7 +109,8 @@ class Action:
|
||||
help: Optional[str] = ...,
|
||||
metavar: Union[str, Tuple[str, ...]] = ...) -> None: ...
|
||||
def __call__(self, parser: ArgumentParser, namespace: Namespace,
|
||||
values: List[Any], option_string: str = ...) -> None: ...
|
||||
values: Union[str, Sequence[Any], None],
|
||||
option_string: str = ...) -> None: ...
|
||||
|
||||
class Namespace:
|
||||
def __getattr__(self, name: str) -> Any: ...
|
||||
|
||||
Reference in new issue
Block a user