Skip to content

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

Merged
charliermarsh merged 1 commit intomainfrom
charlie/furb
Apr 23, 2024
Merged

[refurb] Advoid operator.itemgetter suggestion for single-item tuple#11095
charliermarsh merged 1 commit intomainfrom
charlie/furb

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
@charliermarsh charliermarsh deleted the charlie/furb branch April 23, 2024 00:20
@github-actions
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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