def is_set ( self , key ) : data = self . model . get_data ( ) return isinstance ( data [ key ] , set )
python set check if element exist
Return True if variable is a set
def is_set(self, key):
        """Return True if variable is a set"""
        data = self.model.get_data()
        return isinstance(data[key], set)