Skip to content

Commit dbcd7c6

Browse files
committed
rename the variable
1 parent c83c302 commit dbcd7c6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/huggingface_hub/_snapshot_download.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
logger = logging.get_logger(__name__)
2525

26-
VERY_LARGE_REPO_THRESHOLD = 1000 # After this limit, we don't consider `repo_info.siblings` to be reliable enough
26+
LARGE_REPO_THRESHOLD = 1000 # After this limit, we don't consider `repo_info.siblings` to be reliable enough
2727

2828

2929
@overload
@@ -335,9 +335,7 @@ def snapshot_download(
335335
# In that case, we need to use the `list_repo_tree` method to prevent caching issues.
336336
repo_files: Iterable[str] = [f.rfilename for f in repo_info.siblings] if repo_info.siblings is not None else []
337337
unreliable_nb_files = (
338-
repo_info.siblings is None
339-
or len(repo_info.siblings) == 0
340-
or len(repo_info.siblings) > VERY_LARGE_REPO_THRESHOLD
338+
repo_info.siblings is None or len(repo_info.siblings) == 0 or len(repo_info.siblings) > LARGE_REPO_THRESHOLD
341339
)
342340
if unreliable_nb_files:
343341
logger.info(

0 commit comments

Comments
 (0)