File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 2323
2424logger = 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 (
You can’t perform that action at this time.
0 commit comments