ruff
adf63d90 - [`pylint`] Implement `invalid-hash-returned` (`PLE0309`) (#10961)

Commit
1 year ago
[`pylint`] Implement `invalid-hash-returned` (`PLE0309`) (#10961) Add pylint rule invalid-hash-returned (PLE0309) See https://github.com/astral-sh/ruff/issues/970 for rules Test Plan: `cargo test` TBD: from the description: "Strictly speaking `bool` is a subclass of `int`, thus returning `True`/`False` is valid. To be consistent with other rules (e.g. [PLE0305](https://github.com/astral-sh/ruff/pull/10962) invalid-index-returned), ruff will raise, compared to pylint which will not raise."
Author
Parents
Loading