From b8ead8204491304ee789eea48190ac92ef39488a Mon Sep 17 00:00:00 2001 From: fis Date: Wed, 15 Jul 2020 11:23:37 +0800 Subject: [PATCH] pylint. --- python-package/xgboost/data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python-package/xgboost/data.py b/python-package/xgboost/data.py index cb2ed8fd332f..d2aa52413542 100644 --- a/python-package/xgboost/data.py +++ b/python-package/xgboost/data.py @@ -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 @@ -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