summaryrefslogtreecommitdiff
path: root/numpy/_array_api/_creation_functions.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/_array_api/_creation_functions.py')
-rw-r--r--numpy/_array_api/_creation_functions.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/numpy/_array_api/_creation_functions.py b/numpy/_array_api/_creation_functions.py
index cee379f59..e9ef983fd 100644
--- a/numpy/_array_api/_creation_functions.py
+++ b/numpy/_array_api/_creation_functions.py
@@ -1,7 +1,10 @@
from __future__ import annotations
-from ._types import (Optional, SupportsDLPack, SupportsBufferProtocol, Tuple,
- Union, array, device, dtype)
+
+from typing import TYPE_CHECKING
+if TYPE_CHECKING:
+ from ._types import (Optional, SupportsDLPack, SupportsBufferProtocol, Tuple,
+ Union, array, device, dtype)
from ._dtypes import _all_dtypes
import numpy as np