MartinThoma / flake8-simplify

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

SIM212: Simplify the expected code #168

Closed BoboTiG closed 1 year ago

BoboTiG commented 1 year ago

The behavior shouldn't change, and it's more pythonic that way. Moreover, I checked with Sourcery, and it would do the same simplification, so we should be quite confident about the change.

MartinThoma commented 1 year ago

Thank you for the suggestion :hugs:

I prefer the rule that we have at the moment as it's more explicit.