Closed ghost closed 3 years ago
In case other flake8 plugins have inserted own fields in the AST, SIM114 can cause an infinite recursion. Skip any fields starting with _ in the statement equality comparison to prevent this from happening.
This fixes https://github.com/MartinThoma/flake8-simplify/issues/66
In case other flake8 plugins have inserted own fields in the AST, SIM114 can cause an infinite recursion. Skip any fields starting with _ in the statement equality comparison to prevent this from happening.
This fixes https://github.com/MartinThoma/flake8-simplify/issues/66