From 126493ee17636f865eb0167e9c97584a3ea9bccd Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Tue, 10 Apr 2018 21:32:12 -0700 Subject: [PATCH] dest argument to add_argument is Optional argparse.py checks for None in _get_optional_kwargs. --- stdlib/2and3/argparse.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/2and3/argparse.pyi b/stdlib/2and3/argparse.pyi index 8999bc593022..997522e49744 100644 --- a/stdlib/2and3/argparse.pyi +++ b/stdlib/2and3/argparse.pyi @@ -62,7 +62,7 @@ class _ActionsContainer: required: bool = ..., help: _Text = ..., metavar: Union[_Text, Tuple[_Text, ...]] = ..., - dest: _Text = ..., + dest: Optional[_Text] = ..., version: _Text = ...) -> Action: ... def add_argument_group(self, *args: Any, **kwargs: Any) -> _ArgumentGroup: ... def add_mutually_exclusive_group(self, **kwargs: Any) -> _MutuallyExclusiveGroup: ...