Skip to content

Commit

Permalink
Merge pull request #4262 from ev-br/array_api_2024.12
Browse files Browse the repository at this point in the history
Add 2024.12 to allowed array API versions
  • Loading branch information
Zac-HD authored Feb 3, 2025
2 parents a25f7d9 + 98afa8f commit b53d68c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions hypothesis-python/RELEASE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
RELEASE_TYPE: minor

Add 2024.12 to the list of recognized Array API versions in
``hypothesis.extra.array_api``.
4 changes: 2 additions & 2 deletions hypothesis-python/src/hypothesis/extra/array_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@
]


RELEASED_VERSIONS = ("2021.12", "2022.12", "2023.12")
RELEASED_VERSIONS = ("2021.12", "2022.12", "2023.12", "2024.12")
NOMINAL_VERSIONS = (*RELEASED_VERSIONS, "draft")
assert sorted(NOMINAL_VERSIONS) == list(NOMINAL_VERSIONS) # sanity check
NominalVersion = Literal["2021.12", "2022.12", "2023.12", "draft"]
NominalVersion = Literal["2021.12", "2022.12", "2023.12", "2024.12", "draft"]
assert get_args(NominalVersion) == NOMINAL_VERSIONS # sanity check


Expand Down

0 comments on commit b53d68c

Please sign in to comment.