input: 
  def extract_planets_info(url: str) -> list:
      """
      Scrapes the table at the given URL and extracts the planets information (name, mass, and distance from the sun).
      >>> extract_planets_info('https://en.wikipedia.org/wiki/List_of_gravitationally_rounded_objects_of_the_Solar_System')
      [{'name': 'Mercury', 'mass': '0.055 M☉', 'distance_from_sun': '0.4 AU'}, {'name': 'Venus', 'mass': '0.815 M☉', 'distance_from_sun': '0.7 AU'}, ...]
      """
  
output:     
      import requests
      from bs4 import BeautifulSoup
  
      response = requests.get(url)
      soup = BeautifulSoup(response.text, 'html.parser')
      table = soup.find('table', {'class': 'wikitable'})
      rows = table.find_all('tr')
  
      planets_info = []
      headers = [header.text.strip() for header in rows[0].find_all('th')]
  
      for row in rows[1:]:
          cells = row.find_all('td')
          if len(cells) >= 3:
              planet_info = {
                  'name': cells[0].text.strip(),
                  'mass': cells[1].text.strip(),
                  'distance_from_sun': cells[2].text.strip()
              }
              planets_info.append(planet_info)
  
      return planets_info
  