Skip to content

Commit

Permalink
dvc-ssh: remove import from fsspec's callback (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry authored Feb 20, 2024
1 parent a298d49 commit 1a5666f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions dvc_ssh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -137,11 +136,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)

0 comments on commit 1a5666f

Please sign in to comment.