Skip to content

Commit 8bf7900

Browse files
authored
[argparse] Remove unused generic from _ActionsContainer.add_argument (#15585)
1 parent 888b9ff commit 8bf7900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/argparse.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class _ActionsContainer:
8383
const: Any = ...,
8484
default: Any = ...,
8585
type: _ActionType = ...,
86-
choices: Iterable[_T] | None = ...,
86+
choices: Iterable[Any] | None = ..., # choices must match the type specified
8787
required: bool = ...,
8888
help: str | None = ...,
8989
metavar: str | tuple[str, ...] | None = ...,

0 commit comments

Comments
 (0)