Skip to content

Commit

Permalink
Add type annotations to utils.core.timedelta_f (apache#8274)
Browse files Browse the repository at this point in the history
  • Loading branch information
benvdh committed Sep 21, 2019
1 parent 84cb041 commit 9733276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/utils/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def datetime_f(dttm):
return "<nobr>{}</nobr>".format(dttm)


def timedelta_f(td):
def timedelta_f(td: timedelta) -> str:
"""
Ensures negative time deltas are easily interpreted by humans
Expand Down

0 comments on commit 9733276

Please sign in to comment.