Skip to content

Commit

Permalink
Pre-commit checks and function outputs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Knucklessg1 committed May 9, 2024
1 parent 974b4b3 commit 9c0ba22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subshift/subshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def usage():
)


def pad_time(time, seconds=False):
def pad_time(time, seconds=False) -> str:
padded_time = time
if seconds:
padded_time = "{0:.3f}".format(float(padded_time))
Expand All @@ -32,7 +32,7 @@ def pad_time(time, seconds=False):
return padded_time


def shift_sub_time(time, shift_time=5, shift_operator="+"):
def shift_sub_time(time, shift_time=5, shift_operator="+") -> str:
# Parse time fields
start_time, end_time = time.split(" --> ")
start_hours, start_minutes, start_seconds = start_time.split(":")
Expand Down

0 comments on commit 9c0ba22

Please sign in to comment.