Skip to content

Commit

Permalink
FEAT-modin-project#2451: Add type hints
Browse files Browse the repository at this point in the history
Signed-off-by: William Ma <[email protected]>
  • Loading branch information
williamma12 committed Feb 3, 2021
1 parent ce22ac3 commit 5a1054f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modin/engines/base/io/text/csv_glob_dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import glob
import os
import sys
from typing import List
from typing import List, Tuple
import warnings

import pandas
Expand Down Expand Up @@ -337,14 +337,14 @@ def get_file_path(fs_handle) -> List[str]:
def partitioned_file(
cls,
files,
fnames,
fnames: List[str],
num_partitions: int = None,
nrows: int = None,
skiprows: int = None,
skip_header: int = None,
quotechar: bytes = b'"',
is_quoting: bool = True,
):
) -> List[List[Tuple[str, int, int]]]:
"""
Compute chunk sizes in bytes for every partition.
Expand Down Expand Up @@ -375,8 +375,8 @@ def partitioned_file(
Returns
-------
list
List, where each element of the list is a list of dictionaries. The inner lists
of dictionaries contains the data file of the cunk and chunk start and end offsets for its corresponding file.
List, where each element of the list is a list of tuples. The inner lists
of tuples contains the data file name of the chunk, chunk start offset, and chunk end offsets for its corresponding file.
"""
if type(files) != list:
files = [files]
Expand Down

0 comments on commit 5a1054f

Please sign in to comment.