from typing import Dict


def _is_supported_range_type(affected_range: Dict) -> bool:
    """Return True if the given `affected.ranges` item is supported."""
    return "type" in affected_range and affected_range["type"] in {
        "ECOSYSTEM",
        "SEMVER",
    }