from datetime import datetime


def _parse_dates(config: dict) -> dict:
    """Parse due dates as datetime objects"""
    for due_date_config in config['due-dates']:
        due_date_config['due-date'] = datetime.strptime(due_date_config['due-date'], "%Y-%m-%d")

    return config