mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +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:
@@ -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