ruff
8fba97f7 - `PLR2004`: Accept 0.0 and 1.0 as common magic values (#9964)

Commit
1 year ago
`PLR2004`: Accept 0.0 and 1.0 as common magic values (#9964) ## Summary Accept 0.0 and 1.0 as common magic values. This is in line with the pylint behaviour, and I think makes sense conceptually. ## Test Plan Test cases were added to `crates/ruff_linter/resources/test/fixtures/pylint/magic_value_comparison.py`
Parents
Loading