def check_array_additions(evaluator, array):
 if (array.type not in ('list', 'set')):
  return set()
 is_list = (array.type == 'list')
 try:
  current_module = array.atom.get_parent_until()
 except AttributeError:
  return set()
 return _check_array_additions(evaluator, array, current_module, is_list)

def check_array_additions ( evaluator , array ) : if ( array . type not in ( 'list' , 'set' ) ) : return set ( ) is_list = ( array . type == 'list' ) try : current_module = array . atom . get_parent_until ( ) except AttributeError : return set ( ) return _check_array_additions ( evaluator , array , current_module , is_list )
just a mapper function for the internal _check_array_additions .