From e30d2fdda5c534da0661cc59b31e89749babe16a 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:28:49 +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 131addcad..fb923bd80 100644 --- a/dvc/fs/base.py +++ b/dvc/fs/base.py @@ -316,9 +316,9 @@ class FileSystem: from_file: Union[AnyFSPath, IO], to_info: AnyFSPath, callback: FsspecCallback = DEFAULT_CALLBACK, + size: int = None, **kwargs, ) -> None: - size = kwargs.pop("size", None) if size: callback.set_size(size) if hasattr(from_file, "read"):