summaryrefslogtreecommitdiff
path: root/src/urllib3/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/urllib3/exceptions.py')
-rw-r--r--src/urllib3/exceptions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/urllib3/exceptions.py b/src/urllib3/exceptions.py
index 2cb0a854..ab562906 100644
--- a/src/urllib3/exceptions.py
+++ b/src/urllib3/exceptions.py
@@ -309,7 +309,7 @@ class IncompleteRead(HTTPError, httplib_IncompleteRead):
class InvalidChunkLength(HTTPError, httplib_IncompleteRead):
"""Invalid chunk length in a chunked response."""
- def __init__(self, response: "HTTPResponse", length: int) -> None:
+ def __init__(self, response: "HTTPResponse", length: bytes) -> None:
self.partial: int = response.tell()
self.expected: Optional[int] = response.length_remaining
self.response = response