input: from typing import List
  
  
  def generate_password(min_length: int = 8) -> str:
      """ Generates a random password with a minimum length of 8 characters. 
      The password must contain at least one number and one special character.
      >>> generate_password()
      'A1#b2@c3'
      >>> generate_password()
      'Z9!x8$y7'
      """
      import string
      import random
      
      chars = string.ascii_letters + string.digits + string.punctuation
      while True:
          password = "".join(random.choice(chars) for i in range(min_length))
          if any(c.isdigit() for c in password) and any(c in string.punctuation for c in password):
              return password
output:     import string
      import random
      
      chars = string.ascii_letters + string.digits + string.punctuation
      while True:
          password = "".join(random.choice(chars) for i in range(min_length))
          if any(c.isdigit() for c in password) and any(c in string.punctuation for c in password):
              return password