---
source: crates/ruff/src/rules/pylint/mod.rs
---
magic_value_comparison.py:59:22: PLR2004 Magic value used in comparison, consider replacing "Hunter2" with a constant variable
   |
59 |     pass
60 | 
61 | if input_password == "Hunter2":  # correct
   |                      ^^^^^^^^^ PLR2004
62 |     pass
   |

magic_value_comparison.py:65:21: PLR2004 Magic value used in comparison, consider replacing 3.141592653589793 with a constant variable
   |
65 | pi_estimation = 3.14
66 | 
67 | if pi_estimation == 3.141592653589793238:  # [magic-value-comparison]
   |                     ^^^^^^^^^^^^^^^^^^^^ PLR2004
68 |     pass
   |

magic_value_comparison.py:74:18: PLR2004 Magic value used in comparison, consider replacing b"something" with a constant variable
   |
74 | user_input = b"Hello, There!"
75 | 
76 | if user_input == b"something":  # correct
   |                  ^^^^^^^^^^^^ PLR2004
77 |     pass
   |


