Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add type annotations to most of the files in pip/_internal #6038

Closed
wants to merge 16 commits into from
Prev Previous commit
Next Next commit
one more
mkurnikov committed Nov 23, 2018
commit 87b11e506f55bcab4cd5e1083a83b4366948e214
1 change: 1 addition & 0 deletions src/pip/_internal/download.py
Original file line number Diff line number Diff line change
@@ -543,6 +543,7 @@ def _download_url(
hashes, # type: Hashes
progress_bar # type: str
):
# type: (...) -> None
try:
total_length = int(resp.headers['content-length'])
except (ValueError, KeyError, TypeError):