(var)
Return `Varaible` descriptor for an `Orange.data.Variable` instance.

    Parameters
    ----------
    var : Orange.data.Variable

    Returns
    -------
    var : Variable
Return `Varaible` descriptor for an `Orange.data.Variable` instance.
Return Varaible descriptor for an Orange . data . Variable instance .
def abstract(var):
    # type: (Orange.data.Variable) -> Variable
    """
    Return `Varaible` descriptor for an `Orange.data.Variable` instance.

    Parameters
    ----------
    var : Orange.data.Variable

    Returns
    -------
    var : Variable
    """
    annotations = tuple(sorted(
        (key, str(value))
        for key, value in var.attributes.items()
    ))
    linked = var.compute_value is not None
    if isinstance(var, Orange.data.DiscreteVariable):
        return Categorical(var.name, tuple(var.values), annotations, linked)
    elif isinstance(var, Orange.data.TimeVariable):
        return Time(var.name, annotations, linked)
    elif isinstance(var, Orange.data.ContinuousVariable):
        return Real(var.name, (var.number_of_decimals, 'f'), annotations, linked)
    elif isinstance(var, Orange.data.StringVariable):
        return String(var.name, annotations, linked)
    else:
        raise TypeError
def abstract ( var ) : # type: (Orange.data.Variable) -> Variable annotations = tuple ( sorted ( ( key , str ( value ) ) for key , value in var . attributes . items ( ) ) ) linked = var . compute_value is not None if isinstance ( var , Orange . data . DiscreteVariable ) : return Categorical ( var . name , tuple ( var . values ) , annotations , linked ) elif isinstance ( var , Orange . data . TimeVariable ) : return Time ( var . name , annotations , linked ) elif isinstance ( var , Orange . data . ContinuousVariable ) : return Real ( var . name , ( var . number_of_decimals , 'f' ) , annotations , linked ) elif isinstance ( var , Orange . data . StringVariable ) : return String ( var . name , annotations , linked ) else : raise TypeError