<p dir="auto">Function <code class="notranslate">redirect</code> returns the wrong type according to <code class="notranslate">mypy</code>:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# file &quot;redir.py&quot;
from flask import Response, redirect
def something() -&gt; Response:
    return redirect(&quot;https://wikipedia.org/&quot;)"><pre class="notranslate"><span class="pl-c"># file "redir.py"</span>
<span class="pl-k">from</span> <span class="pl-s1">flask</span> <span class="pl-k">import</span> <span class="pl-v">Response</span>, <span class="pl-s1">redirect</span>
<span class="pl-k">def</span> <span class="pl-en">something</span>() <span class="pl-c1">-&gt;</span> <span class="pl-v">Response</span>:
    <span class="pl-k">return</span> <span class="pl-en">redirect</span>(<span class="pl-s">"https://wikipedia.org/"</span>)</pre></div>
<p dir="auto">Then mypy complains:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="redir.py:3: error: Incompatible return value type (got &quot;werkzeug.wrappers.response.Response&quot;, expected &quot;flask.wrappers.Response&quot;)
Found 1 error in 1 file (checked 1 source file)"><pre class="notranslate"><code class="notranslate">redir.py:3: error: Incompatible return value type (got "werkzeug.wrappers.response.Response", expected "flask.wrappers.Response")
Found 1 error in 1 file (checked 1 source file)
</code></pre></div>
<p dir="auto">Function <code class="notranslate">redirect</code> should return a <code class="notranslate">flask.wrappers.Response</code>.</p>
<p dir="auto">Environment:</p>
<ul dir="auto">
<li>Python version: 3.8.10</li>
<li>Flask version: 2.1.2</li>
</ul>
<p dir="auto">I am not sure if this is a bug in Sphinx, but stuff like the <code class="notranslate">root_path</code> and <code class="notranslate">static_url_path</code> attributes/properties from <code class="notranslate">_PackageBoundObject</code> end up not documented in the API page of the docs. <code class="notranslate">api.rst</code> just contains this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=".. autoclass:: Flask
   :members:
   :inherited-members:"><pre class="notranslate"><code class="notranslate">.. autoclass:: Flask
   :members:
   :inherited-members:
</code></pre></div>