You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/array_api_stubs/_2022_12/data_type_functions.py
+7-7
Original file line number
Diff line number
Diff line change
@@ -148,13 +148,13 @@ def isdtype(
148
148
- If ``kind`` is a dtype, the function must return a boolean indicating whether the input ``dtype`` is equal to the dtype specified by ``kind``.
149
149
- If ``kind`` is a string, the function must return a boolean indicating whether the input ``dtype`` is of a specified data type kind. The following dtype kinds must be supported:
150
150
151
-
- **bool**: boolean data types (e.g., ``bool``).
152
-
- **signed integer**: signed integer data types (e.g., ``int8``, ``int16``, ``int32``, ``int64``).
- ``'integral'``: integer data types. Shorthand for ``('signed integer', 'unsigned integer')``.
155
+
- ``'real floating'``: real-valued floating-point data types (e.g., ``float32``, ``float64``).
156
+
- ``'complex floating'``: complex floating-point data types (e.g., ``complex64``, ``complex128``).
157
+
- ``'numeric'``: numeric data types. Shorthand for ``('integral', 'real floating', 'complex floating')``.
158
158
159
159
- If ``kind`` is a tuple, the tuple specifies a union of dtypes and/or kinds, and the function must return a boolean indicating whether the input ``dtype`` is either equal to a specified dtype or belongs to at least one specified data type kind.
Copy file name to clipboardExpand all lines: src/array_api_stubs/_draft/data_type_functions.py
+7-7
Original file line number
Diff line number
Diff line change
@@ -164,13 +164,13 @@ def isdtype(
164
164
- If ``kind`` is a dtype, the function must return a boolean indicating whether the input ``dtype`` is equal to the dtype specified by ``kind``.
165
165
- If ``kind`` is a string, the function must return a boolean indicating whether the input ``dtype`` is of a specified data type kind. The following dtype kinds must be supported:
166
166
167
-
- **bool**: boolean data types (e.g., ``bool``).
168
-
- **signed integer**: signed integer data types (e.g., ``int8``, ``int16``, ``int32``, ``int64``).
- ``'integral'``: integer data types. Shorthand for ``('signed integer', 'unsigned integer')``.
171
+
- ``'real floating'``: real-valued floating-point data types (e.g., ``float32``, ``float64``).
172
+
- ``'complex floating'``: complex floating-point data types (e.g., ``complex64``, ``complex128``).
173
+
- ``'numeric'``: numeric data types. Shorthand for ``('integral', 'real floating', 'complex floating')``.
174
174
175
175
- If ``kind`` is a tuple, the tuple specifies a union of dtypes and/or kinds, and the function must return a boolean indicating whether the input ``dtype`` is either equal to a specified dtype or belongs to at least one specified data type kind.
0 commit comments