Skip to content

Commit

Permalink
fix(dl): type obj not subscriptable on some py ver (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama authored Jun 28, 2024
1 parent e54eb16 commit bda9b5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ChatTTS/utils/dl.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import hashlib
import requests
from io import BytesIO
from typing import Dict
from mmap import mmap, ACCESS_READ

from .log import logger
Expand Down Expand Up @@ -42,7 +43,7 @@ def check_model(
return True


def check_all_assets(base_dir: Path, sha256_map: dict[str, str], update=False) -> bool:
def check_all_assets(base_dir: Path, sha256_map: Dict[str, str], update=False) -> bool:
logger.get_logger().info("checking assets...")
current_dir = base_dir / "asset"
names = [
Expand Down

0 comments on commit bda9b5a

Please sign in to comment.