code: def lst_avg(lst):
      '''
      Returns the average value of a list.
  
      .. code-block:: jinja
  
          {% my_list = [1,2,3,4] -%}
          {{ set my_list | avg }}
  
      will be rendered as:
  
      .. code-block:: yaml
  
          2.5
      '''
      salt.utils.versions.warn_until(
          'Neon',
          'This results of this function are currently being rounded.'
          'Beginning in the Salt Neon release, results will no longer be '
          'rounded and this warning will be removed.',
          stacklevel=3
      )
  
      if not isinstance(lst, collections.Hashable):
          return float(sum(lst)/len(lst))
      return float(lstf lst_avg(lst):
      '''
      Returns the average value of a list.
  
      .. code-block:: jinja
  
          {% my_list = [1,2,3,4] -%}
          {{ set my_list | avg }}
  
      will be rendered as:
  
      .. code-block:: yaml
  
          2.5
      '''
      salt.utils.versions.warn_until(
          'Neon',
          'This results of this function are currently being rounded.'
          'Beginning in the Salt Neon release, results will no longer be '
          'rounded and this warning will be removed.',
          stacklevel=3
      )
  
      if not isinstance(lst, collections.Hashable):
          return float(sum(lst)/len(lst))
      return float(lst)
docs: Returns the average value of a list.
  
      .. code-block:: jinja
  
          {% my_list = [1,2,3,4] -%}
          {{ set my_list | avg }}
  
      will be rendered as:
  
      .. code-block:: yaml
  
          2.5