|
9 | 9 |
|
10 | 10 | import numpy as np
|
11 | 11 | from numpy import (
|
12 |
| - # Constants |
13 |
| - e, |
14 |
| - inf, |
15 |
| - nan, |
16 |
| - pi, |
17 |
| - newaxis, |
18 | 12 | # Dtypes
|
| 13 | + iinfo, |
| 14 | + finfo, |
19 | 15 | bool_ as bool,
|
20 | 16 | float32,
|
21 | 17 | float64,
|
|
29 | 25 | uint64,
|
30 | 26 | complex64,
|
31 | 27 | complex128,
|
32 |
| - iinfo, |
33 |
| - finfo, |
34 | 28 | can_cast,
|
35 | 29 | result_type,
|
36 | 30 | )
|
@@ -206,19 +200,18 @@ def _isscalar(a):
|
206 | 200 |
|
207 | 201 | return astype(xp.minimum(xp.maximum(x, min), max), x.dtype)
|
208 | 202 |
|
209 |
| -# exclude these from all since |
| 203 | +# exclude these from all since dask.array has no sorting functions |
210 | 204 | _da_unsupported = ['sort', 'argsort']
|
211 | 205 |
|
212 |
| -common_aliases = [alias for alias in _aliases.__all__ if alias not in _da_unsupported] |
| 206 | +_common_aliases = [alias for alias in _aliases.__all__ if alias not in _da_unsupported] |
213 | 207 |
|
214 |
| -__all__ = common_aliases + ['__array_namespace_info__', 'asarray', 'bool', |
215 |
| - 'acos', 'acosh', 'asin', 'asinh', 'atan', 'atan2', |
216 |
| - 'atanh', 'bitwise_left_shift', 'bitwise_invert', |
217 |
| - 'bitwise_right_shift', 'concat', 'pow', 'e', |
218 |
| - 'inf', 'nan', 'pi', 'newaxis', 'float32', |
219 |
| - 'float64', 'int8', 'int16', 'int32', 'int64', |
220 |
| - 'uint8', 'uint16', 'uint32', 'uint64', |
221 |
| - 'complex64', 'complex128', 'iinfo', 'finfo', |
222 |
| - 'can_cast', 'result_type'] |
| 208 | +__all__ = _common_aliases + ['__array_namespace_info__', 'asarray', 'acos', |
| 209 | + 'acosh', 'asin', 'asinh', 'atan', 'atan2', |
| 210 | + 'atanh', 'bitwise_left_shift', 'bitwise_invert', |
| 211 | + 'bitwise_right_shift', 'concat', 'pow', 'iinfo', 'finfo', 'can_cast', |
| 212 | + 'result_type', 'bool', 'float32', 'float64', 'int8', 'int16', 'int32', 'int64', |
| 213 | + 'uint8', 'uint16', 'uint32', 'uint64', |
| 214 | + 'complex64', 'complex128', 'iinfo', 'finfo', |
| 215 | + 'can_cast', 'result_type'] |
223 | 216 |
|
224 |
| -_all_ignore = ['get_xp', 'da', 'partial', 'common_aliases', 'np'] |
| 217 | +_all_ignore = ["get_xp", "da", "np"] |
0 commit comments