def __eq__(self, other: "Likelihood") -> bool:
        """Defines (in)equality between two likelihood objects."""
        # ignore the attributes listed in `ignore_attrs_equality`
        if type(other) is type(self):
            other_state = self._get_equality_attrs(other, self.ignore_attrs_equality)
            self_state = self._get_equality_attrs(self, self.ignore_attrs_equality)
            return other_state == self_state
        else:
            return False
Defines (in)equality between two likelihood objects.
darts/utils/likelihood_models/base.py