Closed Skylion007 closed 2 years ago
Good catch, I'll fix that tomorrow.
Just in case you missed it : in order to still add new rules quickly and don't disturb users of flake8-simplify, I'll use SIM9 rules. If there are no more false positives for 6 months, I'll change the rule to something not beginning with "9". This way people can ignore the SIM9 rules in their CI and just try them once in a while.
This looks very similar to #99 . I'll address both in the same PR/commit
Desired change
Explanation
Why is the adjustment necessary / better?
Example
This is an example where the mentioned rule(s) would currently be suboptimal:
or more simply:
Yes, in this case, it could be written by creating lots of additional variables to replace the references to previous values of "total_time" and "frame_time", but in more complicated dictionaries it seems like this rule could become more troublesome,