PLW0642 flags inplace operators called on self #12954
Labels
accepted
Ready for implementation
bug
Something isn't working
help wanted
Contributions especially welcome
rule
Implementing or modifying a lint rule
is errantly flagged by PLW0642, but I am in these case I'm calling an overloaded function
operator.ixor
on self, not trying to assign a new variable to it. The former would have an actual side affect here, while the later would not affect it at all (which this bug is trying to catch).In this case,
other
is a set, and I can update typing if that the typing is what is confusing ruff, but I wanted toversion:
ruff 0.6.0
The text was updated successfully, but these errors were encountered: