<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def render_syntax_error( project: 'projects.Project', error: SyntaxError ) -> dict: """ Renders a SyntaxError, which has a shallow, custom stack trace derived from the data included in the error, instead of the standard stack trace pulled from the exception frames. :param project: Currently open project. :param error: The SyntaxError to be rendered to html and text for display. :return: A dictionary containing the error response with rendered display messages for both text and html output. """


    return render_error(
        project=project,
        error=error,
        stack=[dict(
            filename=getattr(error, 'filename'),
            location=None,
            line_number=error.lineno,
            line=error.text.rstrip()
        )]
    )