def hackernews_top_stories(max_stories: int = 10) -> list[dict]:
    url = "https://hacker-news.firebaseio.com/v0/topstories.json?print=pretty"
    story_ids = requests.get(url).json()[:max_stories]
    return [get_hackernews_story(story_id) for story_id in story_ids]