From 26ef8bb2295b876265ff1c1445a1e8b8f51a778e Mon Sep 17 00:00:00 2001 From: "xingjun.wxj" Date: Tue, 11 Mar 2025 10:38:16 +0800 Subject: [PATCH] fix lint --- modelscope/utils/hf_util/patcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modelscope/utils/hf_util/patcher.py b/modelscope/utils/hf_util/patcher.py index 983faefe..b31b6e1d 100644 --- a/modelscope/utils/hf_util/patcher.py +++ b/modelscope/utils/hf_util/patcher.py @@ -620,7 +620,7 @@ def _patch_hub(): from huggingface_hub import repocard if not hasattr(repocard.RepoCard, '_validate_origin'): - def load(*args, **kwargs): + def load(*args, **kwargs): # noqa from huggingface_hub.errors import EntryNotFoundError raise EntryNotFoundError(message='API not supported.')