in ez_wsi_dicomweb/dicom_slide.py [0:0]
def __eq__(self, other: Any) -> bool:
if not isinstance(other, _SlidePyramidLevelPatch):
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)
)