Fix compatibility with latest cupy. (#8129)
* Fix compatibility with latest cupy. * Freeze mypy.
This commit is contained in:
parent
24c2373080
commit
2cba1d9fcc
@ -749,8 +749,9 @@ def _is_cudf_ser(data: DataType) -> bool:
|
|||||||
|
|
||||||
|
|
||||||
def _is_cupy_array(data: DataType) -> bool:
|
def _is_cupy_array(data: DataType) -> bool:
|
||||||
return lazy_isinstance(data, "cupy.core.core", "ndarray") or lazy_isinstance(
|
return any(
|
||||||
data, "cupy._core.core", "ndarray"
|
lazy_isinstance(data, n, "ndarray")
|
||||||
|
for n in ("cupy.core.core", "cupy", "cupy._core.core")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@ dependencies:
|
|||||||
- pylint
|
- pylint
|
||||||
- wheel
|
- wheel
|
||||||
- setuptools
|
- setuptools
|
||||||
- mypy
|
- mypy=0.961
|
||||||
- numpy
|
- numpy
|
||||||
- scipy
|
- scipy
|
||||||
- pandas
|
- pandas
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user