import inspect
from enum import Enum


def _is_enum_param(param):
    """Returns whether the given param is annotated as an enum subclass."""
    return inspect.isclass(param.annotation) and issubclass(param.annotation, Enum)