def __eq__()

in ez_wsi_dicomweb/dicom_slide.py [0:0]


  def __eq__(self, other: Any) -> bool:
    if not isinstance(other, DicomPatch):
      return False
    return (
        self.x == other.x
        and self.y == other.y
        and self.width == other.width
        and self.height == other.height
        and (self.source is other.source or self.source == other.source)
        and (self._level is other._level or self._level == other._level)
        and (
            self._destination_image_level is other._destination_image_level
            or self._destination_image_level == other._destination_image_level
        )
    )