Skip to content

Commit

Permalink
fix type import
Browse files Browse the repository at this point in the history
  • Loading branch information
mmz33 committed Jun 7, 2024
1 parent 9787cf5 commit 59bcf41
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions datasets/huggingface.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
"""
https://huggingface.co/docs/datasets/
"""
from __future__ import annotations

from typing import Optional, Any, Union
from typing import Optional, Any, Union, TYPE_CHECKING
from sisyphus import *
from sisyphus.delayed_ops import DelayedBase

from i6_core.util import instanciate_delayed

if TYPE_CHECKING:
from datasets import Split


class DownloadAndPrepareHuggingFaceDatasetJob(Job):
"""
Expand All @@ -26,8 +30,6 @@ class DownloadAndPrepareHuggingFaceDatasetJob(Job):

__sis_hash_exclude__ = {"split": None, "token": None}

from datasets import Split

def __init__(
self,
path: Union[str, DelayedBase],
Expand Down

0 comments on commit 59bcf41

Please sign in to comment.