Skip to content

Commit 25e3300

Browse files
luckyrandomcopybara-github
authored andcommitted
Fix pytype error
pytype error is caused by upstream change on DatasetBuilder PiperOrigin-RevId: 704330938
1 parent 81a2e2e commit 25e3300

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

uncertainty_baselines/datasets/toxic_comments.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,14 @@ def _download_and_prepare(self, dl_manager, download_config=None):
252252
return self._tfds_dataset_builder._download_and_prepare( # pylint: disable=protected-access
253253
dl_manager, download_config)
254254

255-
def _as_dataset(self,
256-
split: tfds.Split,
257-
decoders=None,
258-
read_config=None,
259-
shuffle_files=False) -> tf.data.Dataset:
255+
def _as_dataset(
256+
self,
257+
split: tfds.Split,
258+
decoders=None,
259+
read_config=None,
260+
shuffle_files=False,
261+
file_format: str | tfds.core.FileFormat | None = None,
262+
) -> tf.data.Dataset:
260263
raise NotImplementedError
261264

262265
# Note that we override `as_dataset` instead of `_as_dataset` to avoid any

0 commit comments

Comments
 (0)