(values)
return "STRING", [
            str(value) if not isinstance(value, str) else value for value in values
        ]
Returns a Cytoscape type that can be used to represent all the
        values in `values` and an appropriately converted copy of `values` that
        is suitable for an XML-RPC call.  Note that the string type in
        Cytoscape is used as a catch-all type; if no other type fits, attribute
        values will be converted to string and then posted to Cytoscape.

        ``None`` entries are allowed in `values`, they will be ignored on the
        Cytoscape side.
Returns a Cytoscape type that can be used to represent all the
        values in `values` and an appropriately converted copy of `values` that
        is suitable for an XML-RPC call.  Note that the string type in
        Cytoscape is used as a catch-all type; if no other type fits, attribute
        values will be converted to string and then posted to Cytoscape.
Returns a Cytoscape type that can be used to represent all the values in values and an appropriately converted copy of values that is suitable for an XML - RPC call . Note that the string type in Cytoscape is used as a catch - all type ; if no other type fits attribute values will be converted to string and then posted to Cytoscape .
def infer_cytoscape_type(values):
        """Returns a Cytoscape type that can be used to represent all the
        values in `values` and an appropriately converted copy of `values` that
        is suitable for an XML-RPC call.  Note that the string type in
        Cytoscape is used as a catch-all type; if no other type fits, attribute
        values will be converted to string and then posted to Cytoscape.

        ``None`` entries are allowed in `values`, they will be ignored on the
        Cytoscape side.
        """
        types = [type(value) for value in values if value is not None]
        if all(t == bool for t in types):
            return "BOOLEAN", values
        if all(issubclass(t, (int, int)) for t in types):
            return "INTEGER", values
        if all(issubclass(t, float) for t in types):
            return "FLOATING", values
        return "STRING", [
            str(value) if not isinstance(value, str) else value for value in values
        ]
def infer_cytoscape_type ( values ) : types = [ type ( value ) for value in values if value is not None ] if all ( t == bool for t in types ) : return "BOOLEAN" , values if all ( issubclass ( t , ( int , int ) ) for t in types ) : return "INTEGER" , values if all ( issubclass ( t , float ) for t in types ) : return "FLOATING" , values return "STRING" , [ str ( value ) if not isinstance ( value , str ) else value for value in values ]