Skip to content

Commit c317c90

Browse files
author
The TensorFlow Datasets Authors
committed
Merge pull request #11027 from alexcbb:master
PiperOrigin-RevId: 767564960
2 parents f798fe9 + de384a4 commit c317c90

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tensorflow_datasets/core/community/huggingface_wrapper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import contextlib
2222
import functools
2323
import glob
24+
from importlib import machinery
2425
import os
2526
import sys
2627
import types
@@ -248,6 +249,7 @@ class _MockedHFDatasets(types.ModuleType):
248249

249250
def __init__(self):
250251
super().__init__('datasets')
252+
self.__spec__ = machinery.ModuleSpec('datasets', None)
251253

252254
# pylint: disable=invalid-name
253255

0 commit comments

Comments
 (0)