Remove duplicate type from ArgumentParser.add_argument (#6652)

This commit is contained in:
Jelle Zijlstra
2021-12-21 23:59:23 -08:00
committed by GitHub
parent 14268f64e5
commit 85712073ac

View File

@@ -66,7 +66,7 @@ class _ActionsContainer:
nargs: int | str = ...,
const: Any = ...,
default: Any = ...,
type: Callable[[str], _T] | Callable[[str], _T] | FileType = ...,
type: Callable[[str], _T] | FileType = ...,
choices: Iterable[_T] | None = ...,
required: bool = ...,
help: str | None = ...,