Skip to content

__reversed__ on dict views #13073

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

Merged
merged 2 commits into from
Nov 23, 2024
Merged

__reversed__ on dict views #13073

merged 2 commits into from
Nov 23, 2024

Conversation

tungol
Copy link
Contributor

@tungol tungol commented Nov 23, 2024

KeysView doesn't have __reversed__, but dict_keys does.

Added to KeysView et al. by #3337

At that time, we didn't have dict_keys, dict_items, and dict_values in typeshed. Now we do, so hopefully this isn't too disruptive.

KeysView doesn't have __reversed__, but dict_keys does. When this
was added to typeshed, we didn't have dict_keys as a separate type.
Copy link
Contributor

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

@JelleZijlstra JelleZijlstra merged commit 982fb83 into python:main Nov 23, 2024
63 checks passed
@tungol tungol deleted the dict branch November 23, 2024 21:23
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