Skip to content

Commit

Permalink
Add note regarding aliasing
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Sep 21, 2023
1 parent e927b35 commit aa012a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/array_api_stubs/_draft/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ def dtypes(
.. note::
While specification-conforming array libraries may support additional data types which are not present in this specification, data types which are not present in this specification should not be included in the returned dictionary.
.. note::
Specification-conforming array libraries must only return supported data types having expected properties as described in :ref:`data-types`. For example, if a library decides to alias ``float32`` as ``float64``, that library must not include ``float64`` in the dictionary of supported data types.
Parameters
----------
kind: Optional[Union[str, Tuple[str, ...]]]
Expand Down

0 comments on commit aa012a8

Please sign in to comment.