summaryrefslogtreecommitdiff
path: root/numpy/_array_api/_statistical_functions.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/_array_api/_statistical_functions.py')
-rw-r--r--numpy/_array_api/_statistical_functions.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/_array_api/_statistical_functions.py b/numpy/_array_api/_statistical_functions.py
index fa3551248..26afd7354 100644
--- a/numpy/_array_api/_statistical_functions.py
+++ b/numpy/_array_api/_statistical_functions.py
@@ -1,8 +1,11 @@
from __future__ import annotations
-from ._types import Optional, Tuple, Union, array
from ._array_object import ndarray
+from typing import TYPE_CHECKING
+if TYPE_CHECKING:
+ from ._types import Optional, Tuple, Union, array
+
import numpy as np
def max(x: array, /, *, axis: Optional[Union[int, Tuple[int, ...]]] = None, keepdims: bool = False) -> array: