ruff check --select="PLW0642"
def symmetric_difference_update(self, other: Iterable[T]) -> None:
self ^= other # type: ignore[operator, arg-type]
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 to
version: ruff 0.6.0
is errantly flagged by PLW0642, but I am in these case I'm calling an overloaded function
operator.ixoron 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,
otheris a set, and I can update typing if that the typing is what is confusing ruff, but I wanted toversion:
ruff 0.6.0