MartinThoma / flake8-simplify

❄ A flake8 plugin that helps you to simplify code
MIT License
185 stars 19 forks source link

BUG: Fix infinite recursion in SIM114 #69

Closed ghost closed 3 years ago

ghost commented 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