summaryrefslogtreecommitdiff
path: root/numpy/_array_api/_elementwise_functions.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/_array_api/_elementwise_functions.py')
-rw-r--r--numpy/_array_api/_elementwise_functions.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/_array_api/_elementwise_functions.py b/numpy/_array_api/_elementwise_functions.py
index 9efe17e83..cd2e8661f 100644
--- a/numpy/_array_api/_elementwise_functions.py
+++ b/numpy/_array_api/_elementwise_functions.py
@@ -2,9 +2,12 @@ from __future__ import annotations
from ._dtypes import (_boolean_dtypes, _floating_dtypes,
_integer_dtypes, _integer_or_boolean_dtypes, _numeric_dtypes)
-from ._types import array
from ._array_object import ndarray
+from typing import TYPE_CHECKING
+if TYPE_CHECKING:
+ from ._types import array
+
import numpy as np
def abs(x: array, /) -> array: