Skip to content

Commit 5f13053

Browse files
committed
Type fix: requests iter_content returns iterator
1 parent cdbddd4 commit 5f13053

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/btrixcloud/storages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ def _sync_dl(
836836
) -> Iterator[bytes]:
837837
"""generate streaming zip as sync"""
838838

839-
def get_file(path: str) -> Iterable[bytes]:
839+
def get_file(path: str) -> Iterator[bytes]:
840840
path = self.resolve_internal_access_path(path)
841841
r = requests.get(path, stream=True, timeout=None)
842842
yield from r.iter_content(CHUNK_SIZE)

0 commit comments

Comments
 (0)