Skip to content

Commit 1170ccd

Browse files
committed
__array_api_version__ docs
1 parent eba54b3 commit 1170ccd

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

spec/API_specification/array_api/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@
1212
from .statistical_functions import *
1313
from .utility_functions import *
1414
from . import linalg
15+
16+
17+
__array_api_version__: str = "2021.12"
18+
"""
19+
String representing the version of the array API specification which the conforming implementation adheres to.
20+
"""

spec/API_specification/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ API specification
2424
statistical_functions
2525
type_promotion
2626
utility_functions
27+
version

spec/API_specification/version.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Version
2+
=======
3+
4+
Array API specification for versioning.
5+
6+
A conforming implementation of the array API standard must provide a `__array_api_version__` attribute - see :ref:`api-versioning` for details.
7+
8+
9+
Objects in API
10+
--------------
11+
12+
.. currentmodule:: array_api
13+
14+
..
15+
NOTE: please keep the functions in alphabetical order
16+
17+
.. autosummary::
18+
:toctree: generated
19+
:template: attribute.rst
20+
21+
__array_api_version__

0 commit comments

Comments
 (0)