Skip to content

remove unused generic from argparse._ActionsContainer.add_argument#15585

Open
KotlinIsland wants to merge 1 commit intopython:mainfrom
KotlinIsland:add_argument
Open

remove unused generic from argparse._ActionsContainer.add_argument#15585
KotlinIsland wants to merge 1 commit intopython:mainfrom
KotlinIsland:add_argument

Conversation

@KotlinIsland
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 1, 2026

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

default: Any = ...,
type: _ActionType = ...,
choices: Iterable[_T] | None = ...,
choices: Iterable[object] | None = ...,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
choices: Iterable[object] | None = ...,
choices: Iterable[Any] | None = ..., # choices must match the type specified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants