Closed MartinThoma closed 3 years ago
If(
test=Name(id='a', ctx=Load()),
body=[
Expr(
value=Name(id='b', ctx=Load()),
),
],
orelse=[
If(
test=Name(id='c', ctx=Load()),
body=[
Expr(
value=Name(id='b', ctx=Load()),
),
],
orelse=[],
),
],
),
Explanation
See https://sourcery.ai/blog/explaining-refactorings-4/
Example