Skip to content
Snippets Groups Projects
Verified Commit 2ee21827 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Add type annotations

parent e67c09d1
No related branches found
No related tags found
No related merge requests found
......@@ -416,8 +416,7 @@ def make_conflicts(sdl, schedule_pk, show_pk):
return conflicts
# TODO: add type annotations
def generate_timeslots(schedule):
def generate_timeslots(schedule: Schedule) -> list[TimeSlot]:
"""
Returns a list of timeslot objects based on a schedule and its rrule
Returns past timeslots as well, starting from first_date (not today)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment