I have the following line in my project
from requests.packages.urllib3.util.retry import Retry
Everything related to requests
works with no problem, even the Retry
from requests import Session
from requests.adapters import HTTPAdapter
from requests.packages.urllib3.util.retry import Retry
requests = Session()
retry = Retry(connect=8, backoff_factor=0.5)
adapter = HTTPAdapter(max_retries=retry)
requests.mount("http://", adapter)
requests.mount("https://", adapter)
But for some unknown reason, Pylance complains about Retry
module cannot be found.
What can be this warning?