From ae4f56c5ad949cb8c0b1ce493926f7651dbc792a 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: Thu, 28 Apr 2022 15:27:09 +0545 Subject: [PATCH] fs.put_file: don't require size to be passed --- 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 aad6d0b90..131addcad 100644 --- a/dvc/fs/base.py +++ b/dvc/fs/base.py @@ -318,7 +318,7 @@ class FileSystem: callback: FsspecCallback = DEFAULT_CALLBACK, **kwargs, ) -> None: - size = kwargs.pop("size") + size = kwargs.pop("size", None) if size: callback.set_size(size) if hasattr(from_file, "read"):