Skip to content

Commit 6ba0f5b

Browse files
committed
MAINT: appease ruff
1 parent 0fdb4f8 commit 6ba0f5b

5 files changed

Lines changed: 7 additions & 5 deletions

File tree

array_api_strict/_array_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
_real_to_complex_map,
4141
_result_type,
4242
)
43-
from ._devices import CPU_DEVICE, ALL_DEVICES, Device
43+
from ._devices import CPU_DEVICE, Device
4444
from ._flags import get_array_api_strict_flags, set_array_api_strict_flags
4545
from ._typing import PyCapsule
4646

array_api_strict/_creation_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from ._dtypes import DType, _all_dtypes, _np_dtype, bool as xp_bool
99
from ._devices import (
10-
CPU_DEVICE, Device, device_supports_dtype, get_default_dtypes,
10+
Device, device_supports_dtype, get_default_dtypes,
1111
check_device as _check_device
1212
)
1313
from ._flags import get_array_api_strict_flags

array_api_strict/_fft.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33

44
import numpy as np
55

6-
from ._array_object import ALL_DEVICES, Array, Device
6+
from ._array_object import Array
7+
from ._devices import ALL_DEVICES, Device
78
from ._data_type_functions import astype
89
from ._dtypes import (
910
DType,

array_api_strict/tests/test_elementwise_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
from .. import asarray, _elementwise_functions
9-
from .._array_object import ALL_DEVICES, CPU_DEVICE, Device
9+
from .._devices import ALL_DEVICES, CPU_DEVICE, Device
1010
from .._elementwise_functions import bitwise_left_shift, bitwise_right_shift
1111
from .._dtypes import (
1212
_dtype_categories,

array_api_strict/tests/test_searching_functions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
import array_api_strict as xp
44

55
from array_api_strict import ArrayAPIStrictFlags
6-
from .._array_object import ALL_DEVICES, CPU_DEVICE, Device
6+
from .._devices import ALL_DEVICES, CPU_DEVICE, Device
77
from .._dtypes import _all_dtypes
88

99

10+
1011
def test_where_with_scalars():
1112
x = xp.asarray([1, 2, 3, 1])
1213

0 commit comments

Comments
 (0)