Skip to content

__reversed__ on dict views#13073

Merged
JelleZijlstra merged 2 commits into
python:mainfrom
tungol:dict
Nov 23, 2024
Merged

__reversed__ on dict views#13073
JelleZijlstra merged 2 commits into
python:mainfrom
tungol:dict

Conversation

@tungol
Copy link
Copy Markdown
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.
@github-actions
Copy link
Copy Markdown
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
@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