from typing import List


async def raceclasses(
    event_interval_start: dict, contestants: List[dict]
) -> List[dict]:
    """Create a mock raceclasses object."""
    raceclasses: List[dict] = []
    raceclasses.append(
        {
            "name": "J15",
            "group": 1,
            "order": 1,
            "ageclasses": ["J 15 år"],
            "no_of_contestants": 2,
            "event_id": event_interval_start["id"],
            "distance": "5km",
        }
    )
    raceclasses.append(
        {
            "name": "G15",
            "group": 1,
            "order": 2,
            "ageclasses": ["G 15 år"],
            "no_of_contestants": 2,
            "event_id": event_interval_start["id"],
            "distance": "5km",
        }
    )
    raceclasses.append(
        {
            "name": "J16",
            "group": 2,
            "order": 1,
            "ageclasses": ["J 16 år"],
            "no_of_contestants": 2,
            "event_id": event_interval_start["id"],
            "distance": "5km",
        }
    )
    raceclasses.append(
        {
            "name": "G16",
            "group": 2,
            "order": 2,
            "ageclasses": ["G 16 år"],
            "no_of_contestants": 2,
            "event_id": event_interval_start["id"],
            "distance": "5km",
        }
    )
    return raceclasses