Skip to content

Commit

Permalink
Fix: Literal import for python < 3.9.
Browse files Browse the repository at this point in the history
  • Loading branch information
Labbeti committed Apr 17, 2024
1 parent f887423 commit 0000bcd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aac_datasets/utils/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
import os
import os.path as osp
from pathlib import Path
from typing import List, Literal, Union
from typing import List, Union

import tqdm
from torch.hub import download_url_to_file
from typing_extensions import Literal

HASH_TYPES = ("sha256", "md5")
DEFAULT_CHUNK_SIZE = 256 * 1024**2 # 256 MiB
Expand Down

0 comments on commit 0000bcd

Please sign in to comment.