input: def get_average_salary(filename: str) -> float:
      """ Compute the average salary from a given CSV file containing names and salaries.
      The CSV file should have header 'name' and 'salary'.
      >>> get_average_salary('salary.csv')
      2000.0
      """
output:     import csv
      total_salary = 0
      count = 0
      
      with open(filename, newline='') as csvfile:
          reader = csv.DictReader(csvfile)
          for row in reader:
              total_salary += float(row['salary'])
              count += 1
      
      if count == 0:
          return 0.0
      return total_salary / count