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

Fix strict equality check if operand item type has custom __eq__ #14513

Merged
merged 1 commit into from
Jan 23, 2023

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Jan 23, 2023

Don't complain about comparing lists, variable-length tuples or sets if one of the operands has an item type with a custom __eq__ method.

Fix #14511.

Don't complain about comparing lists, variable-legnth tuples or sets if
one of the operands has an item type with a custom __eq__ method.

Fix #14511.
@JukkaL JukkaL closed this Jan 23, 2023
@JukkaL JukkaL reopened this Jan 23, 2023
@github-actions
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/dtypes/cast.py:792: error: Unused "type: ignore" comment
+ pandas/core/dtypes/cast.py:799: error: Unused "type: ignore" comment
+ pandas/core/arrays/arrow/array.py:330: error: Unused "type: ignore" comment
+ pandas/core/arrays/datetimes.py:2503: error: Unused "type: ignore" comment
+ pandas/core/arrays/datetimes.py:2513: error: Unused "type: ignore" comment
+ pandas/core/arrays/sparse/array.py:919: error: Unused "type: ignore" comment
+ pandas/io/json/_json.py:1135: error: Unused "type: ignore" comment

@ilinum ilinum merged commit 9ca3035 into master Jan 23, 2023
@ilinum ilinum deleted the strict-equality-list branch January 23, 2023 19:19
JukkaL added a commit that referenced this pull request Jan 24, 2023
ilinum pushed a commit that referenced this pull request Jan 24, 2023
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.

Strict equality false positive with lists having different item types
2 participants