Skip to content

Commit ef0e3b1

Browse files
committed
Update type hints relating to complex
1 parent d2267e4 commit ef0e3b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

array_api_tests/typing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
]
1313

1414
DataType = Type[Any]
15-
Scalar = Union[bool, int, float]
16-
ScalarType = Union[Type[bool], Type[int], Type[float]]
15+
Scalar = Union[bool, int, float, complex]
16+
ScalarType = Union[Type[bool], Type[int], Type[float], Type[complex]]
1717
Array = Any
1818
Shape = Tuple[int, ...]
1919
AtomicIndex = Union[int, "ellipsis", slice, None] # noqa

0 commit comments

Comments
 (0)