Skip to content

Remove Any from array.pyi - #6922

Merged
JelleZijlstra merged 1 commit into
python:masterfrom
sobolevn:patch-88
Jan 15, 2022
Merged

JelleZijlstra merged 1 commit into
python:masterfrom
sobolevn:patch-88

Conversation

@sobolevn

Copy link
Copy Markdown
Member

I've changed:

It only makes sense to count and remove elements of the item type T. For example, I think that array[int].remove('a') should be a type error.

list works this way:

Do others agree?

@hauntsaninja hauntsaninja left a comment

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.

Thanks, I'm in favour of this!

@github-actions

Copy link
Copy Markdown
Contributor

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

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.

3 participants