Skip to content

Commit

Permalink
More accurate type.
Browse files Browse the repository at this point in the history
  • Loading branch information
itamarst authored and pythonspeed committed Jun 2, 2023
1 parent 614e628 commit e8654ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pip/_internal/network/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ def get_body(self, key: str) -> Optional[BinaryIO]:
with suppressed_cache_errors():
return open(path, "rb")

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

0 comments on commit e8654ad

Please sign in to comment.