Skip to content

Commit e8654ad

Browse files
itamarstpythonspeed
authored andcommitted
More accurate type.
1 parent 614e628 commit e8654ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pip/_internal/network/cache.py

Lines changed: 1 addition & 1 deletion
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)