Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
  • Loading branch information
mariosasko committed Dec 15, 2023
1 parent a3911e5 commit 84a367b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/huggingface_hub/_commit_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ def _fetch_lfs_files_to_copy(
[`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError)
If the Hub API response is improperly formatted.
"""
from .hf_api import HfApi, RepoFile
from .hf_api import HfApi, RepoFolder

hf_api = HfApi(endpoint=endpoint, token=token)
files_to_copy = {}
Expand All @@ -570,7 +570,7 @@ def _fetch_lfs_files_to_copy(
repo_type=repo_type,
)
for src_repo_file in src_repo_files:
if isinstance(src_repo_file, RepoFolder):
if isinstance(src_repo_file, RepoFolder):
raise NotImplementedError("Copying a folder is not implemented.")
if not src_repo_file.lfs:
raise NotImplementedError("Copying a non-LFS file is not implemented")
Expand Down

0 comments on commit 84a367b

Please sign in to comment.