<h2 dir="auto">Summary</h2>
<p dir="auto"><code class="notranslate">chardet</code> version 5.0.0 was released on pypi on 25th of June 2022. If this version is picked up by your dependencies, <code class="notranslate">requests</code> version 2.28.0 will issue the following warning:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=".../lib/python3.9/site-packages/requests/__init__.py:102: RequestsDependencyWarning: urllib3 (1.26.8) or chardet (5.0.0)/charset_normalizer (2.0.4) doesn't match a supported version!&quot;"><pre class="notranslate"><code class="notranslate">.../lib/python3.9/site-packages/requests/__init__.py:102: RequestsDependencyWarning: urllib3 (1.26.8) or chardet (5.0.0)/charset_normalizer (2.0.4) doesn't match a supported version!"
</code></pre></div>
<p dir="auto">I am not sure whether version 5.0.0 of <code class="notranslate">chardet</code> is compatible with <code class="notranslate">requests</code>. According to the documentation, <code class="notranslate">requests</code> supports <code class="notranslate">chardet</code> version 4. It would be good to verify the compatibility with <code class="notranslate">chardet</code> version 5 and adapt the version range check accordingly</p>
<h2 dir="auto">Reproduction Steps</h2>
<p dir="auto">Install the latest version of  <code class="notranslate">chardet</code>:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ pip install --upgrade chardet"><pre class="notranslate">$ pip install --upgrade chardet</pre></div>
<p dir="auto">Import <code class="notranslate">requests</code> in python to trigger the warning:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import requests"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">requests</span></pre></div>
<h2 dir="auto">System Information</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python -m requests.help"><pre class="notranslate"><code class="notranslate">$ python -m requests.help
</code></pre></div>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
  &quot;chardet&quot;: {
    &quot;version&quot;: &quot;5.0.0&quot;
  },
  &quot;charset_normalizer&quot;: {
    &quot;version&quot;: &quot;2.0.12&quot;
  },
  &quot;cryptography&quot;: {
    &quot;version&quot;: &quot;&quot;
  },
  &quot;idna&quot;: {
    &quot;version&quot;: &quot;3.3&quot;
  },
  &quot;implementation&quot;: {
    &quot;name&quot;: &quot;CPython&quot;,
    &quot;version&quot;: &quot;3.9.13&quot;
  },
  &quot;platform&quot;: {
    &quot;release&quot;: &quot;5.3.18-150300.59.76-default&quot;,
    &quot;system&quot;: &quot;Linux&quot;
  },
  &quot;pyOpenSSL&quot;: {
    &quot;openssl_version&quot;: &quot;&quot;,
    &quot;version&quot;: null
  },
  &quot;requests&quot;: {
    &quot;version&quot;: &quot;2.27.1&quot;
  },
  &quot;system_ssl&quot;: {
    &quot;version&quot;: &quot;1010104f&quot;
  },
  &quot;urllib3&quot;: {
    &quot;version&quot;: &quot;1.26.9&quot;
  },
  &quot;using_charset_normalizer&quot;: false,
  &quot;using_pyopenssl&quot;: false
}"><pre class="notranslate">{
  <span class="pl-ent">"chardet"</span>: {
    <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>5.0.0<span class="pl-pds">"</span></span>
  },
  <span class="pl-ent">"charset_normalizer"</span>: {
    <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.0.12<span class="pl-pds">"</span></span>
  },
  <span class="pl-ent">"cryptography"</span>: {
    <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>
  },
  <span class="pl-ent">"idna"</span>: {
    <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>3.3<span class="pl-pds">"</span></span>
  },
  <span class="pl-ent">"implementation"</span>: {
    <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>CPython<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>3.9.13<span class="pl-pds">"</span></span>
  },
  <span class="pl-ent">"platform"</span>: {
    <span class="pl-ent">"release"</span>: <span class="pl-s"><span class="pl-pds">"</span>5.3.18-150300.59.76-default<span class="pl-pds">"</span></span>,
    <span class="pl-ent">"system"</span>: <span class="pl-s"><span class="pl-pds">"</span>Linux<span class="pl-pds">"</span></span>
  },
  <span class="pl-ent">"pyOpenSSL"</span>: {
    <span class="pl-ent">"openssl_version"</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>,
    <span class="pl-ent">"version"</span>: <span class="pl-c1">null</span>
  },
  <span class="pl-ent">"requests"</span>: {
    <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>2.27.1<span class="pl-pds">"</span></span>
  },
  <span class="pl-ent">"system_ssl"</span>: {
    <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>1010104f<span class="pl-pds">"</span></span>
  },
  <span class="pl-ent">"urllib3"</span>: {
    <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>1.26.9<span class="pl-pds">"</span></span>
  },
  <span class="pl-ent">"using_charset_normalizer"</span>: <span class="pl-c1">false</span>,
  <span class="pl-ent">"using_pyopenssl"</span>: <span class="pl-c1">false</span>
}</pre></div>
<p dir="auto"><code class="notranslate">chardet</code> just released <a href="https://github.com/chardet/chardet/releases/tag/5.0.0">v5.0.0</a> which is not supported by the latest version (2.28.0) of requests:<br>
</p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/psf/requests/blob/da9996fe4dc63356e9467d0a5e10df3d89a8528e/requests/__init__.py#L79">requests/requests/__init__.py</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 79
      in
      <a data-pjax="true" class="commit-tease-sha" href="/psf/requests/commit/da9996fe4dc63356e9467d0a5e10df3d89a8528e">da9996f</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L79" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="79"></td>
          <td id="LC79" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">assert</span> (<span class="pl-c1">3</span>, <span class="pl-c1">0</span>, <span class="pl-c1">2</span>) <span class="pl-c1">&lt;=</span> (<span class="pl-s1">major</span>, <span class="pl-s1">minor</span>, <span class="pl-s1">patch</span>) <span class="pl-c1">&lt;</span> (<span class="pl-c1">5</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>) </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>
<p dir="auto">Could you please add the support for the v5.0.0 of chardet ?</p>