Skip to content

Commit db9862c

Browse files
fix tqdm_class argument of subclass of tqdm (#3111)
* fix tqdm_class argument of subclass of tqdm * Apply style fixes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent aa4e9c9 commit db9862c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/huggingface_hub/_snapshot_download.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22
from pathlib import Path
3-
from typing import Dict, Iterable, List, Literal, Optional, Union
3+
from typing import Dict, Iterable, List, Literal, Optional, Type, Union
44

55
import requests
66
from tqdm.auto import tqdm as base_tqdm
@@ -44,7 +44,7 @@ def snapshot_download(
4444
allow_patterns: Optional[Union[List[str], str]] = None,
4545
ignore_patterns: Optional[Union[List[str], str]] = None,
4646
max_workers: int = 8,
47-
tqdm_class: Optional[base_tqdm] = None,
47+
tqdm_class: Optional[Type[base_tqdm]] = None,
4848
headers: Optional[Dict[str, str]] = None,
4949
endpoint: Optional[str] = None,
5050
# Deprecated args

0 commit comments

Comments
 (0)