def __eq__()

in pathology/transformation_pipeline/ingestion_lib/dicom_util/spec/util/lib/dicom_tag_xml_parser.py [0:0]


  def __eq__(self, other) -> bool:
    if isinstance(other, dict):
      if self.address != other.get('address'):
        return False
      if self.comment != other.get('comment'):
        return False
      if self.keyword != other.get('keyword'):
        return False
      if self.vr != other.get('vr'):
        return False
      if self.vm != other.get('vm'):
        return False
      if self.retired != other.get('retired'):
        return False
      return True
    else:
      if self.address != other.address:
        return False
      if self.comment != other.comment:
        return False
      if self.keyword != other.keyword:
        return False
      if self.vr != other.vr:
        return False
      if self.vm != other.vm:
        return False
      if self.retired != other.retired:
        return False
      return True