Skip to content
New issue

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

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

Already on GitHub? # to your account

[refurb] Advoid operator.itemgetter suggestion for single-item tuple #11095

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

charliermarsh
Copy link
Member

Summary

The operator.itemgetter behavior changes where there's more than one argument, such that operator.itemgetter(0) yields r[0], rather than (r[0],).

Closes #11075.

@charliermarsh charliermarsh added the bug Something isn't working label Apr 23, 2024
@charliermarsh charliermarsh enabled auto-merge (squash) April 23, 2024 00:12
@charliermarsh charliermarsh merged commit 925c7f8 into main Apr 23, 2024
17 checks passed
@charliermarsh charliermarsh deleted the charlie/furb branch April 23, 2024 00:20
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FURB118 bug: incorrectly replaces 1 element tuple lambdas with itemgetter
1 participant