def has_special_character(password: str) -> bool:
    """ checks if password has at least one special character """

    return any(char for char in password if not char.isalnum() and not char.isspace())