We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64fe1af commit 302e28bCopy full SHA for 302e28b
src/array_api_typing/_misc_objects.py
@@ -1,4 +1,6 @@
1
"""Static typing support for miscellaneous objects in the array API."""
2
3
-Device = object # The device on which an Array API array is stored.
4
-DType = object # The type of the numbers contained in an Array API array."""
+from typing import TypeAlias
+
5
+Device: TypeAlias = object # The device on which an Array API array is stored.
6
+DType: TypeAlias = object # The type of the numbers contained in an Array API array."""
0 commit comments