Skip to content

Commit

Permalink
another isinstance
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny Sepler committed Mar 16, 2020
1 parent 173e6d6 commit 29ccc9d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions agate/computations/change.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ def __init__(self, before_column_name, after_column_name):
def get_computed_data_type(self, table):
before_column = table.columns[self._before_column_name]

if isinstance(before_column.data_type, Date):
return TimeDelta()
elif isinstance(before_column.data_type, DateTime):
return TimeDelta()
elif isinstance(before_column.data_type, TimeDelta):
if isinstance(before_column.data_type, (Date, DateTime, TimeDelta)):
return TimeDelta()
elif isinstance(before_column.data_type, Number):
return Number()
Expand Down

0 comments on commit 29ccc9d

Please sign in to comment.