from typing import Type


def is_dataclass(type_: Type) -> bool:
    """
    Check whether a type is a dataclass

    :param type_:                       the type to check
    """
    return hasattr(type_, '__dataclass_fields__')