(value, type_)
Determine if value is a subclass of type_

    Will work even value is not a class
Determine if value is a subclass of type_
Determine if value is a subclass of type_
def issubclass_safe(value, type_):
    """Determine if value is a subclass of type_

    Will work even value is not a class
    """
    try:
        return issubclass(value, type_)
    except (TypeError, AttributeError):
        # Cannot perform issubclass on some types
        return False
def issubclass_safe ( value , type_ ) : try : return issubclass ( value , type_ ) except ( TypeError , AttributeError ) : # Cannot perform issubclass on some types return False