title: What is the type annotation for a Flask view?
body: <p>I want to add type annotations to a view function that returns a call to <code>redirect</code>. What does <code>redirect</code> return, and how do I add an annotation for that to my view function?</p>
  
  <p>I thought it might be <code>str</code>, or the <code>redirect</code> function, but I'm not sure.</p>
  
  <pre class="lang-py prettyprint-override"><code>def setalarm() -&gt; redirect:
      # Retrieves the information to create new alarms.
      return redirect("/")
  </code></pre>