from typing import List
from typing import Dict
import heapq


def top_anomalies(points: List[Dict], n=10) -> List[Dict]:
    """Returns top n anomalies according to severity."""
    return heapq.nlargest(
        n,
        points,
        key=lambda point: point["severity"]
    )