ruff/crates/ruff_linter
hikaru-kajita f7aab5ac69
[pylint] Fixed false-positive on the rule PLW1641 (eq-without-hash) (#10566)
## Summary

Fixed false-positive on the rule `PLW1641`, where the explicit
assignment on the `__hash__` method is not counted as an definition of
`__hash__`. (Discussed in #10557).

Also, added one new testcase.

## Test Plan

Checked on `cargo test` in `eq_without_hash.py`.

Before the change, for the assignment into `__hash__`, only `__hash__ =
None` was counted as an explicit definition of `__hash__` method.
Probably any assignment into `__hash__` property could be counted as an
explicit definition of hash, so I removed `value.is_none_literal_expr()`
check.
2024-03-25 14:40:01 +00:00
..
resources [pylint] Fixed false-positive on the rule PLW1641 (eq-without-hash) (#10566) 2024-03-25 14:40:01 +00:00
src [pylint] Fixed false-positive on the rule PLW1641 (eq-without-hash) (#10566) 2024-03-25 14:40:01 +00:00
__init__.py [pylint] (Re-)Implement import-private-name (C2701) (#9553) 2024-01-16 14:03:11 -05:00
Cargo.toml Bump version to v0.3.4 (#10515) 2024-03-21 18:08:21 +00:00