|
33 | 33 | )
|
34 | 34 | from ._flags import get_array_api_strict_flags, set_array_api_strict_flags
|
35 | 35 |
|
36 |
| -from typing import TYPE_CHECKING, Optional, Tuple, Union, Any, SupportsIndex |
| 36 | +from typing import TYPE_CHECKING, SupportsIndex |
37 | 37 | import types
|
38 | 38 |
|
39 | 39 | if TYPE_CHECKING:
|
40 |
| - from ._typing import Any, PyCapsule, Device, Dtype |
| 40 | + from typing import Optional, Tuple, Union, Any |
| 41 | + from ._typing import PyCapsule, Device, Dtype |
41 | 42 | import numpy.typing as npt
|
42 | 43 |
|
43 | 44 | import numpy as np
|
@@ -589,8 +590,8 @@ def __getitem__(
|
589 | 590 | key: Union[
|
590 | 591 | int,
|
591 | 592 | slice,
|
592 |
| - ellipsis, |
593 |
| - Tuple[Union[int, slice, ellipsis, None], ...], |
| 593 | + ellipsis, # noqa: F821 |
| 594 | + Tuple[Union[int, slice, ellipsis, None], ...], # noqa: F821 |
594 | 595 | Array,
|
595 | 596 | ],
|
596 | 597 | /,
|
@@ -780,7 +781,7 @@ def __rshift__(self: Array, other: Union[int, Array], /) -> Array:
|
780 | 781 | def __setitem__(
|
781 | 782 | self,
|
782 | 783 | key: Union[
|
783 |
| - int, slice, ellipsis, Tuple[Union[int, slice, ellipsis], ...], Array |
| 784 | + int, slice, ellipsis, Tuple[Union[int, slice, ellipsis], ...], Array # noqa: F821 |
784 | 785 | ],
|
785 | 786 | value: Union[int, float, bool, Array],
|
786 | 787 | /,
|
|
0 commit comments