input: from typing import List, Dict
  
  
  def scrape_planet_info(url: str) -> List[Dict[str, str]]:
      """Scrape the table at the given URL and extract the planets information including name, mass, and distance from the sun.
      >>> scrape_planet_info('https://en.wikipedia.org/wiki/List_of_gravitationally_rounded_objects_of_the_Solar_System')
      [{'name': 'Mercury', 'mass': '0.055 MJ⁵', 'distance_from_sun': '0.4 AU'}, {'name': 'Venus', 'mass': '0.815 MJ⁵', 'distance_from_sun': '0.7 AU'}, ...]
      """
output:     
      import requests
      from bs4 import BeautifulSoup
  
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
      table = soup.find('table', {'class': 'wikitable'})
  
      planets = []
      rows = table.find_all('tr')
      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) == len(headers):
              planet_info = {}
              for i, cell in enumerate(cells):
                  planet_info[headers[i].lower().replace(' ', '_')] = cell.text.strip()
              planets.append(planet_info)
  
      return planets
  