Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pytype error #1332

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions uncertainty_baselines/datasets/toxic_comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,14 @@ def _download_and_prepare(self, dl_manager, download_config=None):
return self._tfds_dataset_builder._download_and_prepare( # pylint: disable=protected-access
dl_manager, download_config)

def _as_dataset(self,
split: tfds.Split,
decoders=None,
read_config=None,
shuffle_files=False) -> tf.data.Dataset:
def _as_dataset(
self,
split: tfds.Split,
decoders=None,
read_config=None,
shuffle_files=False,
file_format: str | tfds.core.FileFormat | None = None,
) -> tf.data.Dataset:
raise NotImplementedError

# Note that we override `as_dataset` instead of `_as_dataset` to avoid any
Expand Down
Loading