from typing import List


def sector_to_subreddit_list(sector: str) -> List:
    """Returns list of subreddit for respective sector

    Parameters
    ----------
    sector : str
        sector of ticker

    Returns
    -------
    List
        List of subreddits
    """
    sector_subreddit_map = {
        "Basic Materials": [],
        "Communication Services": [],
        "Consumer Cyclical": [],
        "Consumer Defensive": [],
        "Energy": [
            "energy",
            "RenewableEnergy",
        ],
        "Financial Services": [
            "Finance",
            "FinancialPlanning",
            "PersonalFinance",
        ],
        "Healthcare": [
            "public_health",
            "healthcare",
            "globalhealth",
        ],
        "Industrials": [],
        "Real Estate": [
            "realestate",
            "realestateinvesting",
        ],
        "Technology": [
            "technology",
            "tech",
        ],
        "Utilities": [],
    }

    if sector in sector_subreddit_map:
        return sector_subreddit_map[sector]
    return []