(self, other)
| 12 | return f"dns.serial.Serial({self.value}, {self.bits})" |
| 13 | |
| 14 | def __eq__(self, other): |
| 15 | if isinstance(other, int): |
| 16 | other = Serial(other, self.bits) |
| 17 | elif not isinstance(other, Serial) or other.bits != self.bits: |
| 18 | return NotImplemented |
| 19 | return self.value == other.value |
| 20 | |
| 21 | def __ne__(self, other): |
| 22 | if isinstance(other, int): |