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"):