Skip to content

Commit

Permalink
remove type restriction for ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremiah Lowin committed Aug 26, 2015
1 parent 8195d49 commit 174682b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions airflow/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,7 @@ def __neq__(self, other):
return not self == other

def __lt__(self, other):
return (type(self) == type(other) and self.task_id < other.task_id)
return self.task_id < other.task_id

def __hash__(self):
return hash(tuple(getattr(self, c, None) for c in self._comps))
Expand Down Expand Up @@ -1785,7 +1785,7 @@ def __neq__(self, other):
return not self == other

def __lt__(self, other):
return (type(self) == type(other) and self.dag_id < other.dag_id)
return self.dag_id < other.dag_id

def __hash__(self):
return hash(tuple(getattr(self, c, None) for c in self._comps))
Expand Down

0 comments on commit 174682b

Please sign in to comment.