Skip to content

Commit 0d339af

Browse files
committed
use dir
1 parent e217b9a commit 0d339af

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mergin/client_pull.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,9 @@ def __init__(
5050
version,
5151
update_tasks,
5252
download_queue_items,
53-
directory,
53+
directory: tempfile.TemporaryDirectory,
5454
mp,
5555
project_info,
56-
download_tmp_dir: typing.Optional[tempfile.TemporaryDirectory] = None,
5756
):
5857
self.project_path = project_path
5958
self.total_size = total_size # size of data to download (in bytes)
@@ -66,7 +65,6 @@ def __init__(
6665
self.is_cancelled = False
6766
self.project_info = project_info # parsed JSON with project info returned from the server
6867
self.failure_log_file = None # log file, copied from the project directory if download fails
69-
self.download_tmp_dir = download_tmp_dir # temporary directory for downloads if specified
7068

7169
def dump(self):
7270
print("--- JOB ---", self.total_size, "bytes")

0 commit comments

Comments
 (0)