from typing import List
import re


def find_endpoints(line: str) -> List[str]:
    """
    Find the name of a subclass of
    ``~understatapi.endpoints.base.BaseEndpoint`` in a string

    :param line: The string in which to search for the name of a
        ``~understatapi.endpoints.base.BaseEndpoint`` object
    """
    match = re.findall(r"\w+Endpoint", line)
    if match is None:
        return []  # pragma: no cover
    return match