Skip to content

Commit 1c40fdb

Browse files
committed
lint.
1 parent c208f9a commit 1c40fdb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python-package/xgboost/_data_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ def parse_cal_ver(ver: str) -> tuple[int, int]:
588588

589589

590590
@fcache
591-
def cudf_has_mode() -> bool:
591+
def cudf_read_only() -> bool:
592592
"""When cuDF >= 26.02, the `to_pylibcudf` method is read-only."""
593593
import cudf
594594

@@ -612,8 +612,8 @@ def cudf_cat_inf( # pylint: disable=too-many-locals
612612
codes_ainf = cuda_array_interface_dict(codes)
613613
return cats_ainf, codes_ainf, (cats, codes)
614614

615-
# pylint: disable=protected-access
616-
if cudf_has_mode():
615+
if cudf_read_only():
616+
# pylint: disable=protected-access
617617
arrow_col = cats._column.to_pylibcudf()
618618
else:
619619
arrow_col = cats._column.to_pylibcudf(mode="read")

0 commit comments

Comments
 (0)