input: from typing import List, Dict
  
  def extract_planets_info(url: str) -> List[Dict[str, str]]:
      """ Extract the names, masses, and distances from the sun of planets listed in a table from a given URL.
      >>> extract_planets_info('https://en.wikipedia.org/wiki/List_of_gravitationally_rounded_objects_of_the_Solar_System')
      [{'name': 'Mercury', 'mass': '0.055 (0.05527) M⊕', 'distance_from_sun': '0.39 AU'}, {'name': 'Venus', 'mass': '0.815 (0.81500) M⊕', 'distance_from_sun': '0.72 AU'}, ...]
      """
      import requests
      from bs4 import BeautifulSoup
  
      page = requests.get(url)
      soup = BeautifulSoup(page.content, 'lxml')
  
      planets_table = soup.find('table', class_='wikitable sortable')
  
      planets = []
      for row in planets_table.find_all('tr'):
          if row.find('th'):
              continue
          cells = row.find_all('td')
          planets.append({
              'name': cells[0].text,
              'mass': cells[2].text,
              'distance_from_sun': cells[5].text
          })
  
      return planets
output:     import requests
      from bs4 import BeautifulSoup
  
      page = requests.get(url)
      soup = BeautifulSoup(page.content, 'lxml')
  
      planets_table = soup.find('table', class_='wikitable sortable')
  
      planets = []
      for row in planets_table.find_all('tr'):
          if row.find('th'):
              continue
          cells = row.find_all('td')
          planets.append({
              'name': cells[0].text.strip(),
              'mass': cells[2].text.strip(),
              'distance_from_sun': cells[5].text.strip()
          })
  
      return planets