Skip to content

Allow item to be passed as a keyword argument to UserList.index() again #11600

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

Closed
wants to merge 2 commits into from

Conversation

AlexWaygood
Copy link
Member

Tiny followup to #11595

Copy link
Contributor

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

@JelleZijlstra
Copy link
Member

I wonder if this actually makes users' lives better. This class is mostly meant to be subclassed, and an overloaded function is annoying to type out in a subclass. Plus list.index doesn't accept any keyword arguments.

@AlexWaygood
Copy link
Member Author

eh, yeah, you're probably right

@AlexWaygood AlexWaygood deleted the pyright-bump-nits branch March 14, 2024 18:54
@AlexWaygood AlexWaygood restored the pyright-bump-nits branch March 14, 2024 18:55
@AlexWaygood AlexWaygood deleted the pyright-bump-nits branch March 14, 2024 18:58
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