Skip to content

Commit 9094da2

Browse files
committed
Add several more type hints
1 parent a842db8 commit 9094da2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,10 +356,11 @@ def calculate_next_recurring_event(
356356
weeks=repeat_interval * times_completed
357357
) # add weeks to the original date
358358
elif repeat_often == 3: # if task repeat often is monthly
359-
new_month = (
359+
new_month: int = (
360360
original_date.month + repeat_interval * times_completed
361361
) # get new month
362-
new_year = original_date.year + (new_month - 1) // 12 # get new year
362+
new_year: int = original_date.year + \
363+
(new_month - 1) // 12 # get new year
363364
new_month = (
364365
new_month - 1
365366
) % 12 + 1 # clamp month from 1 (January) to 12 (December)

0 commit comments

Comments
 (0)