We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e778b43 commit 0d76330Copy full SHA for 0d76330
src/pip/_internal/network/cache.py
@@ -78,6 +78,6 @@ def get_body(self, key: str) -> Optional[BinaryIO]:
78
with suppressed_cache_errors():
79
return open(path, "rb")
80
81
- def set_body(self, key: str, body: Optional[bytes]) -> None:
+ def set_body(self, key: str, body: bytes) -> None:
82
path = self._get_cache_path(key) + ".body"
83
self._write(path, body)
0 commit comments