title: Is there a way to tell mypy to ignore checks on overridden functions?
body: <p>I changed a function in a specific library by monkey patching it with a different function.</p>
  <h4>Library's send function</h4>
  <pre class="lang-py prettyprint-override"><code>def send(content: str):
    ...
  </code></pre>
  <h4>Monkey patch</h4>
  <pre class="lang-py prettyprint-override"><code>def new(content: Union[str, dict[str, str]]):
    return send(content)
  
  library.send = new
  </code></pre>
  <p>But using that function results in a mypy error:</p>
  <h4>Code that resulted in an error</h4>
  <pre class="lang-py prettyprint-override"><code>library.send(
    {&quot;ja&quot;: &quot;Japanese text&quot;, &quot;en&quot;: &quot;English text&quot;}
  )
  </code></pre>
  <h4>Error text</h4>
  <pre class="lang-py prettyprint-override"><code>Argument 1 to &quot;send&quot; has incompatible type &quot;Dict[str, str]&quot;; expected &quot;str&quot;
  </code></pre>
  <p>Is it possible to make exceptions for certain functions to avoid this?</p>