Skip to content

Commit 0d76330

Browse files
committed
More accurate type.
1 parent e778b43 commit 0d76330

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pip/_internal/network/cache.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@ def get_body(self, key: str) -> Optional[BinaryIO]:
7878
with suppressed_cache_errors():
7979
return open(path, "rb")
8080

81-
def set_body(self, key: str, body: Optional[bytes]) -> None:
81+
def set_body(self, key: str, body: bytes) -> None:
8282
path = self._get_cache_path(key) + ".body"
8383
self._write(path, body)

0 commit comments

Comments
 (0)