Skip to content

Commit

Permalink
address review
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt711 committed Nov 26, 2024
1 parent 31d1212 commit db19620
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/cudf/cudf/_lib/csv.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def read_csv(
options.set_prefix(prefix)

if usecols is not None:
if all([isinstance(col, int) for col in usecols]):
if all(isinstance(col, int) for col in usecols):
options.set_use_cols_indexes(list(usecols))
else:
options.set_use_cols_names([str(name) for name in usecols])
Expand Down
3 changes: 2 additions & 1 deletion python/pylibcudf/pylibcudf/io/csv.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Copyright (c) 2024, NVIDIA CORPORATION.

from collections.abc import Mapping
from typing import Self

from typing_extensions import Self

from pylibcudf.io.types import (
CompressionType,
Expand Down
2 changes: 1 addition & 1 deletion python/pylibcudf/pylibcudf/tests/io/test_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def test_read_csv_dtypes(csv_table_data, source_or_sink, usecols):
).build()
options.set_dtypes(dtypes)
if usecols is not None:
if all([isinstance(col, int) for col in usecols]):
if all(isinstance(col, int) for col in usecols):
options.set_use_cols_indexes(list(usecols))
else:
options.set_use_cols_names([str(name) for name in usecols])
Expand Down

0 comments on commit db19620

Please sign in to comment.