import typing


def _strip_keys(struct: typing.Dict,
                keys: typing.Union[list, str]) -> typing.Dict:
    """Return copy of struct but without the keys listed."""
    if not isinstance(keys, list):
        keys = [keys]
    return {k: v for k, v in struct.items() if k not in keys}