Skip to content

Commit ef61f10

Browse files
committed
Fix some ruff unused import errors
1 parent edffda7 commit ef61f10

6 files changed

+2
-9
lines changed

array_api_strict/_data_type_functions.py

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
if TYPE_CHECKING:
2121
from ._typing import Dtype
22-
from collections.abc import Sequence
2322

2423
import numpy as np
2524

array_api_strict/_statistical_functions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
_numeric_dtypes,
77
)
88
from ._array_object import Array
9-
from ._dtypes import float32, float64, complex64, complex128
9+
from ._dtypes import float32, complex64
1010

1111
from typing import TYPE_CHECKING, Optional, Tuple, Union
1212

array_api_strict/_typing.py

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121

2222
from typing import (
2323
Any,
24-
Literal,
25-
Sequence,
26-
Type,
27-
Union,
2824
TypeVar,
2925
Protocol,
3026
)

array_api_strict/linalg.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
_floating_dtypes,
55
_numeric_dtypes,
66
float32,
7-
float64,
87
complex64,
98
complex128,
109
)

array_api_strict/tests/test_array_object.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import numpy as np
55
import pytest
66

7-
from .. import ones, asarray, reshape, result_type, all, equal
7+
from .. import ones, asarray, result_type, all, equal
88
from .._array_object import Array, CPU_DEVICE
99
from .._dtypes import (
1010
_all_dtypes,

array_api_strict/tests/test_manipulation_functions.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from numpy.testing import assert_raises
22
import numpy as np
33

4-
from .. import all
54
from .._creation_functions import asarray
65
from .._dtypes import float64, int8
76
from .._manipulation_functions import (

0 commit comments

Comments
 (0)