from typing import List
from typing import Any
from typing import Union
from typing import Tuple


def isinstances(__obj: List[Any], __class_or_tuple: Union[Any, Tuple[Any]]) -> bool:
    """Return whether an every element of the list is an instance of a class or of a subclass thereof.
    A tuple, as in `isinstance(x, (A, B, ...))`, may be given as the target to check against.
    This is equivalent to `isinstance(x, A)` or `isinstance(x, B)` or ... etc.
    """
    return all(isinstance(obj, __class_or_tuple) for obj in __obj)