(obj, cls)
:param cls: A type or tuple of types to check the type of obj against
:param cls: A type or tuple of types to check the type of obj against
: param cls : A type or tuple of types to check the type of obj against
def _validate_class(obj, cls):
    """
    :param cls: A type or tuple of types to check the type of obj against
    """
    if not isinstance(obj, cls):
        raise TypeError("Expected an instance of %s" % str(cls))
def _validate_class ( obj , cls ) : if not isinstance ( obj , cls ) : raise TypeError ( "Expected an instance of %s" % str ( cls ) )