mirror of https://github.com/pypa/pip
Reflect that headers are non-optional in _get_encoding_from_headers().
This commit is contained in:
parent
6c9e0c2536
commit
ec892cec97
|
@ -155,7 +155,7 @@ def _get_html_response(url, session):
|
|||
|
||||
|
||||
def _get_encoding_from_headers(headers):
|
||||
# type: (Optional[ResponseHeaders]) -> Optional[str]
|
||||
# type: (ResponseHeaders) -> Optional[str]
|
||||
"""Determine if we have any encoding information in our headers.
|
||||
"""
|
||||
if headers and "Content-Type" in headers:
|
||||
|
|
Loading…
Reference in New Issue