Skip to content

Commit ff4cc65

Browse files
zcharles8SeqIO
authored andcommitted
Adjust read_file_fn pytype.
PiperOrigin-RevId: 600556341
1 parent 713c5f1 commit ff4cc65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

seqio/dataset_providers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ class FileDataSource(DataSource):
583583

584584
def __init__(
585585
self,
586-
read_file_fn: Callable[[tf.data.Dataset], tf.data.Dataset],
586+
read_file_fn: Callable[[str], tf.data.Dataset],
587587
split_to_filepattern: Mapping[str, Union[str, Iterable[str]]],
588588
num_input_examples: Optional[Mapping[str, int]] = None,
589589
caching_permitted: bool = True,

0 commit comments

Comments
 (0)