Skip to content

Commit 302e28b

Browse files
committed
Add TypeAlias
1 parent 64fe1af commit 302e28b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/array_api_typing/_misc_objects.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
"""Static typing support for miscellaneous objects in the array API."""
22

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."""
3+
from typing import TypeAlias
4+
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

Comments
 (0)