Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Any from array.pyi #6922

Merged
merged 1 commit into from
Jan 15, 2022
Merged

Remove Any from array.pyi #6922

merged 1 commit into from
Jan 15, 2022

Conversation

sobolevn
Copy link
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?

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

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
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