return f"<DAG: {self.dag_id}>"
    def __eq__(self, other):
        if type(self) == type(other):
            
            
            return all(getattr(self, c, None) == getattr(other, c, None) for c in self._comps)
        return False
    def __ne__(self, other):
        return not self == other
    def __lt__(self, other):
        return self.dag_id < other.dag_id
    def __hash__(self):
        hash_components = [type(self)]
        for c in self._comps:
            
            if c == "task_ids":
                val = tuple(self.task_dict.keys())
            else:
                val = getattr(self, c, None)
            try:
                hash(val)
                hash_components.append(val)
            except TypeError:
                hash_components.append(repr(val))
        return hash(tuple(hash_components))
    
    def __enter__(self):