diff --git a/.circleci/config.yml b/.circleci/config.yml index e0da7563767..c6e45edbfcc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -205,6 +205,7 @@ jobs: sudo apt-get update -y sudo apt install -y libturbojpeg-dev pip install --user --progress-bar off mypy + pip install --user --progress-bar off types-requests pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html pip install --user --progress-bar off --editable . mypy --config-file mypy.ini diff --git a/.circleci/config.yml.in b/.circleci/config.yml.in index e3cefda8981..fdc5c68c13a 100644 --- a/.circleci/config.yml.in +++ b/.circleci/config.yml.in @@ -205,6 +205,7 @@ jobs: sudo apt-get update -y sudo apt install -y libturbojpeg-dev pip install --user --progress-bar off mypy + pip install --user --progress-bar off types-requests pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html pip install --user --progress-bar off --editable . mypy --config-file mypy.ini diff --git a/torchvision/datasets/utils.py b/torchvision/datasets/utils.py index 2b5c2f9f567..e6798bd4500 100644 --- a/torchvision/datasets/utils.py +++ b/torchvision/datasets/utils.py @@ -201,7 +201,7 @@ def download_file_from_google_drive(file_id: str, root: str, filename: Optional[ md5 (str, optional): MD5 checksum of the download. If None, do not check """ # Based on https://stackoverflow.com/questions/38511444/python-download-files-from-google-drive-using-url - import requests # type: ignore + import requests url = "https://docs.google.com/uc?export=download" root = os.path.expanduser(root)