Skip to content

Detect items that hash to same value in duplicate sets#14064

Merged
charliermarsh merged 2 commits intomainfrom
charlie/b
Nov 3, 2024
Merged

Detect items that hash to same value in duplicate sets#14064
charliermarsh merged 2 commits intomainfrom
charlie/b

Conversation

@charliermarsh
Copy link
Member

Summary

Like #14063, but ensures that we catch cases like {1, True} in which the items hash to the same value despite not being identical.

@charliermarsh charliermarsh added the rule Implementing or modifying a lint rule label Nov 3, 2024
@charliermarsh charliermarsh marked this pull request as ready for review November 3, 2024 18:11
@charliermarsh charliermarsh changed the base branch from main to charlie/hash-eq November 3, 2024 18:12
Base automatically changed from charlie/hash-eq to main November 3, 2024 18:44
@charliermarsh charliermarsh enabled auto-merge (squash) November 3, 2024 18:45
@charliermarsh charliermarsh merged commit 66872a4 into main Nov 3, 2024
@charliermarsh charliermarsh deleted the charlie/b branch November 3, 2024 18:49
@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2024

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

rule Implementing or modifying a lint rule

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant