J08nY / pyecsca

Unbalanced tuple unpacking PYL-W0632
Bug risk
Major
a month ago5 months old
Possible unbalanced tuple unpacking with sequence defined at line 233: left side has 2 labels, right side has 0 values
252            return False
253        if self.is_final or other.is_final:
254            return self.is_final == other.is_final
255        l, r = self.parts256        lo, ro = other.parts
257        return (l == lo and r == ro) or (l == ro and r == lo)
258
Possible unbalanced tuple unpacking with sequence defined at line 233: left side has 2 labels, right side has 0 values
239    def __repr__(self):
240        if self.is_final:
241            return f"({self.value})"
242        l, r = self.parts243        return f"({l.__repr__()},{r.__repr__()})"
244
245    def __add__(self, other):