def _get_hint(hint):
    """
    Retrieves a hint by the given name from :module:`jig.commands.hints`.

    :param string hintname: the ALL_CAPS constant defined in the hints module
    :rtype: list
    """
    from jig.commands import hints
    if isinstance(hint, list):
        return hint
    return getattr(hints, hint)
