argparse: fix for latest py39 (#4267)

https://github.com/python/typeshed/pull/4144 and
https://github.com/python/cpython/pull/11478#pullrequestreview-423968410
resulted in the issue being fixed upstream.


Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2020-06-26 03:55:23 -07:00
committed by GitHub
parent cc150f1d76
commit 9a16b02187

View File

@@ -290,7 +290,6 @@ if sys.version_info >= (3, 9):
self,
option_strings: Sequence[str],
dest: str,
const: None = ..., # unused in implementation
default: Union[_T, str, None] = ...,
type: Optional[Union[Callable[[Text], _T], Callable[[str], _T], FileType]] = ...,
choices: Optional[Iterable[_T]] = ...,