Skip to content

Commit d2bc837

Browse files
committed
lint.
1 parent 0fcf11a commit d2bc837

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python-package/xgboost/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def ctypes2numpy(cptr, length, dtype):
209209

210210
def ctypes2cupy(cptr, length, dtype):
211211
"""Convert a ctypes pointer array to a cupy array."""
212-
import cupy
212+
import cupy # pylint: disable=import-error
213213
mem = cupy.zeros(length.value, dtype=dtype, order='C')
214214
addr = ctypes.cast(cptr, ctypes.c_void_p).value
215215
# pylint: disable=c-extension-no-member,no-member

0 commit comments

Comments
 (0)