docs: def get_formatted_stack_frame(
          project: 'projects.Project',
          error_stack: bool = True
  ) -> list:
      """
      Returns a list of the stack frames formatted for user display that has
      been enriched by the project-specific data. 
      
      :param project:
          The currently open project used to enrich the stack data.
      :param error_stack:
          Whether or not to return the error stack. When True the stack of the
          last exception will be returned. If no such exception exists, an empty
          list will be returned instead. When False the current execution stack
          trace will be returned.
      """
  
      return [
          format_stack_frame(f, project)
          for f in get_stack_frames(error_stack=error_stack)
      ]