Skip to content

Commit

Permalink
importing TypedDict from typing_extensions for python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaKh committed Dec 5, 2023
1 parent ccafa5a commit d2c995e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tonic/cached_dataset.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
import logging
import os
import sys

if sys.version_info >= (3, 8):
from typing import Callable, Iterable, Optional, Tuple, TypedDict, Union
else:
from typing import Callable, Iterable, Optional, Tuple, Union
from typing_extensions import TypedDict

import random
import shutil
from dataclasses import dataclass, field
from pathlib import Path
from typing import Callable, Iterable, Optional, Tuple, TypedDict, Union
from warnings import warn

import h5py
Expand Down

0 comments on commit d2c995e

Please sign in to comment.