Skip to content

Commit

Permalink
Merge pull request #22365 from honno/xp-version
Browse files Browse the repository at this point in the history
BUG: Add `__array_api_version__` to `numpy.array_api` namespace
  • Loading branch information
charris committed Oct 2, 2022
2 parents a5d2c58 + 6579448 commit 3abc097
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion numpy/array_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@
"The numpy.array_api submodule is still experimental. See NEP 47.", stacklevel=2
)

__all__ = []
__array_api_version__ = "2021.12"

__all__ = ["__array_api_version__"]

from ._constants import e, inf, nan, pi

Expand Down

0 comments on commit 3abc097

Please sign in to comment.