You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report! It looks like the rule is currently restricted to simple variable name expressions like the upstream rule, but I think it makes sense to expand it to attribute accesses (as in this example) and probably subscripts too. I think that should cover valid left-hand sides of assignments.
The challenge with allowing more expressions is that we then get pushback that the resulting expression is now too complicated and isn't a simplification. That's why, for now, I'd prefer to keep the rule aligned with the upstream rule.
Summary
SIM108 is not being raised for instance variables.
Expected behavior:
SIM108 raised to suggest
Actual behavior:
SIM108 not raised.
Removing
self.
causes the rule to be raised.The text was updated successfully, but these errors were encountered: