Skip to content

Commit

Permalink
pylint.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jul 15, 2020
1 parent e9f5400 commit b8ead82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python-package/xgboost/data.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# pylint: disable=too-many-arguments, too-many-branches
# pylint: disable=too-many-return-statements
# pylint: disable=too-many-return-statements, import-error
'''Data dispatching for DMatrix.'''
import ctypes
import json
Expand Down Expand Up @@ -390,7 +390,7 @@ def _is_cupy_array(data):
def _transform_cupy_array(data):
if not hasattr(data, '__cuda_array_interface__') and hasattr(
data, '__array__'):
import cupy # pylint: disable=import-error
import cupy # pylint: disable=import-error
data = cupy.array(data, copy=False)
return data

Expand Down

0 comments on commit b8ead82

Please sign in to comment.