Skip to content

Commit

Permalink
Adjust read_file_fn pytype.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 600556341
  • Loading branch information
zcharles8 authored and SeqIO committed Jan 23, 2024
1 parent 713c5f1 commit 674ec95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seqio/dataset_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ class FileDataSource(DataSource):

def __init__(
self,
read_file_fn: Callable[[tf.data.Dataset], tf.data.Dataset],
read_file_fn: Callable[[str], tf.data.Dataset],
split_to_filepattern: Mapping[str, Union[str, Iterable[str]]],
num_input_examples: Optional[Mapping[str, int]] = None,
caching_permitted: bool = True,
Expand Down

0 comments on commit 674ec95

Please sign in to comment.