from typing import Union
from typing import List
from typing import Set


def to_set(value: Union[str, List[str]]) -> Set[str]:
    """Convert a string or list of strings to a set with that key or keys."""

    if isinstance(value, str):
        return {value}
    return set(value)