def validate_single_type(srctype, target):
    """
    Compares a type against a string description

    :param srctype: source type
    :param target: srctype pattern
    """
    if type(target) is not str:
        if srctype is target:
            return True
    elif '.' in target:
        fqn = srctype.__module__ + '.' + srctype.__name__
        return target == fqn
    else:
        return srctype.__name__ == target
    return False
