From f84f9cf1846554a13f388693220378edb8d17be6 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, 26 Apr 2022 18:33:40 +0545 Subject: [PATCH] fs: do not pass size to underlying fs.put_file --- dvc/fs/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/fs/base.py b/dvc/fs/base.py index f6271bde6..0ca3d32f0 100644 --- a/dvc/fs/base.py +++ b/dvc/fs/base.py @@ -273,7 +273,7 @@ class FileSystem: callback: FsspecCallback = DEFAULT_CALLBACK, **kwargs, ) -> None: - size = kwargs.get("size") + size = kwargs.pop("size") if size: callback.set_size(size) if hasattr(from_file, "read"):