We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_ActionsContainer.add_argument
1 parent 888b9ff commit 8bf7900Copy full SHA for 8bf7900
stdlib/argparse.pyi
@@ -83,7 +83,7 @@ class _ActionsContainer:
83
const: Any = ...,
84
default: Any = ...,
85
type: _ActionType = ...,
86
- choices: Iterable[_T] | None = ...,
+ choices: Iterable[Any] | None = ..., # choices must match the type specified
87
required: bool = ...,
88
help: str | None = ...,
89
metavar: str | tuple[str, ...] | None = ...,
0 commit comments