diff --git a/resources/test/fixtures/flake8_simplify/SIM210.py b/resources/test/fixtures/flake8_simplify/SIM210.py index e80972ffceb07..dafe5e24dab9b 100644 --- a/resources/test/fixtures/flake8_simplify/SIM210.py +++ b/resources/test/fixtures/flake8_simplify/SIM210.py @@ -6,7 +6,9 @@ a = False if b else True # OK -def bool(): - return False +def f(): + # OK + def bool(): + return False -a = True if b else False # OK + a = True if b else False diff --git a/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM210_SIM210.py.snap b/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM210_SIM210.py.snap index 4521af3433bd1..b2609d824e953 100644 --- a/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM210_SIM210.py.snap +++ b/src/rules/flake8_simplify/snapshots/ruff__rules__flake8_simplify__tests__SIM210_SIM210.py.snap @@ -63,11 +63,11 @@ expression: diagnostics IfExprWithTrueFalse: expr: b location: - row: 12 - column: 4 + row: 14 + column: 8 end_location: - row: 12 - column: 24 + row: 14 + column: 28 fix: ~ parent: ~