Skip to content

Commit db98942

Browse files
dest argument to add_argument is Optional (#2040)
argparse.py checks for None in _get_optional_kwargs.
1 parent bdea1bb commit db98942

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/2and3/argparse.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class _ActionsContainer:
6262
required: bool = ...,
6363
help: _Text = ...,
6464
metavar: Union[_Text, Tuple[_Text, ...]] = ...,
65-
dest: _Text = ...,
65+
dest: Optional[_Text] = ...,
6666
version: _Text = ...) -> Action: ...
6767
def add_argument_group(self, *args: Any, **kwargs: Any) -> _ArgumentGroup: ...
6868
def add_mutually_exclusive_group(self, **kwargs: Any) -> _MutuallyExclusiveGroup: ...

0 commit comments

Comments
 (0)