from typing import Type


def inheritable(x):
    """
    inheritable(x) -> bool

    Returns whether a class type can be inherited. 

    Args:
        x (type): the input class name.

    Example::

        >>> inheritable(int)
        True
        >>> inheritable(bool)
        False
    """
    if isinstance(x, Type) or callable(x): return False
    try:
        class tmp(x): pass
        return True
    except TypeError: return False