Revert "fix snapshot_download lint"

This reverts commit 8a73537ff4.
This commit is contained in:
suluyana
2025-01-02 17:07:25 +08:00
parent 8a73537ff4
commit 98eee86c2e

View File

@@ -9,8 +9,7 @@ from pathlib import Path
from typing import Dict, List, Optional, Union
from modelscope.hub.api import HubApi, ModelScopeConfig
from modelscope.hub.constants import \
MODELSCOPE_SHOW_INDIVIDUAL_PROGRESS_THRESHOLD
from modelscope.hub.constants import MODELSCOPE_SHOW_INDIVIDUAL_PROGRESS_THRESHOLD
from modelscope.hub.errors import InvalidParameter
from modelscope.hub.file_download import (create_temporary_directory_and_cache,
download_file, get_file_download_url)
@@ -488,8 +487,8 @@ def _download_file_lists(
cache,
headers,
cookies,
disable_tqdm=len(filtered_repo_files) > # noqa
MODELSCOPE_SHOW_INDIVIDUAL_PROGRESS_THRESHOLD,
disable_tqdm=len(filtered_repo_files) >
MODELSCOPE_SHOW_INDIVIDUAL_PROGRESS_THRESHOLD,
)
if len(filtered_repo_files) > 0: