mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
argparse#add_argument: make choices optional (#5574)
This commit is contained in:
@@ -69,7 +69,7 @@ class _ActionsContainer:
|
||||
const: Any = ...,
|
||||
default: Any = ...,
|
||||
type: Union[Callable[[str], _T], Callable[[str], _T], FileType] = ...,
|
||||
choices: Iterable[_T] = ...,
|
||||
choices: Optional[Iterable[_T]] = ...,
|
||||
required: bool = ...,
|
||||
help: Optional[str] = ...,
|
||||
metavar: Optional[Union[str, Tuple[str, ...]]] = ...,
|
||||
|
||||
Reference in New Issue
Block a user