mirror of
https://github.com/astral-sh/ruff
synced 2026-01-21 21:40:51 -05:00
SIM300 currently doesn't take Python constants into account when looking for Yoda conditions, this PR fixes that behavior. ```python # Errors YODA == age # SIM300 YODA > age # SIM300 YODA >= age # SIM300 # OK age == YODA age < YODA age <= YODA ``` Ref: <https://github.com/home-assistant/core/pull/86793>