From d9b4260ceea002db4a3bd2499e9ba8004bae4d36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saugat=20Pachhai=20=28=E0=A4=B8=E0=A5=8C=E0=A4=97=E0=A4=BE?= =?UTF-8?q?=E0=A4=A4=29?= Date: Tue, 20 Feb 2024 13:18:13 +0545 Subject: [PATCH] dvc-ssh: remove import from fsspec's callback --- dvc_ssh/__init__.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dvc_ssh/__init__.py b/dvc_ssh/__init__.py index 13499e0..ac12fe2 100644 --- a/dvc_ssh/__init__.py +++ b/dvc_ssh/__init__.py @@ -3,7 +3,6 @@ import threading from typing import ClassVar -from fsspec.callbacks import DEFAULT_CALLBACK from funcy import memoize, silent, wrap_prop, wrap_with from dvc.utils.objects import cached_property @@ -133,11 +132,7 @@ def put_file( self, from_file, to_info, - callback=DEFAULT_CALLBACK, - size=None, **kwargs, ): with as_atomic(self, to_info) as tmp_file: - super().put_file( - from_file, tmp_file, callback=callback, size=size, **kwargs - ) + super().put_file(from_file, tmp_file, **kwargs)