Skip to content

Commit

Permalink
unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
tgolsson committed Jun 2, 2023
1 parent 4cd9107 commit b85c418
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pdm/models/caches.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import contextlib
import dataclasses
import hashlib
import io
import json
import os
from functools import lru_cache
Expand Down Expand Up @@ -273,7 +272,7 @@ def get(self, key: str) -> bytes | None:

return None

def get_body(self, key: str) -> io.FileIO | None:
def get_body(self, key: str) -> BinaryIO | None:
path = self._get_cache_path(key)
with contextlib.suppress(OSError):
return cast(BinaryIO, open(f"{path}.body", "rb"))
Expand Down

0 comments on commit b85c418

Please sign in to comment.