input: def get_average_salary(filename: str) -> float:
      """ Compute the average salary from a CSV file containing rows with names and salaries.
      The CSV file should have the following format:
      name, salary
      John, 1000
      Sara, 2000
      Alice, 3000
      The function will read the CSV file and calculate the average salary, ignoring the header.
      >>> 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
      return total_salary / count if count > 0 else 0.0