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 useless dict lookup, as the keys are always the same two #1845

Closed

Conversation

selfhoster1312
Copy link
Contributor

The problem

It's not clear what dict += list is.

Solution

dict += list == dict + list.keys()
(but dict + list is TypeError)

But in fact, we don't need this operation at all because the keys don't change so just remove that part.

@selfhoster1312
Copy link
Contributor Author

This code was rewritten for bookworm so this clarification is useless

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant