We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MIN_VER_FOR_COMPLEX
1 parent 927b80a commit 2a884faCopy full SHA for 2a884fa
hypothesis-python/tests/array_api/common.py
@@ -13,7 +13,12 @@
13
14
import pytest
15
16
-from hypothesis.extra.array_api import COMPLEX_NAMES, REAL_NAMES, NominalVersion
+from hypothesis.extra.array_api import (
17
+ COMPLEX_NAMES,
18
+ REAL_NAMES,
19
+ RELEASED_VERSIONS,
20
+ NominalVersion,
21
+)
22
from hypothesis.internal.floats import next_up
23
24
__all__ = [
@@ -24,8 +29,10 @@
29
]
25
30
26
31
27
-# This should be updated for when a released version includes complex numbers
32
+# This should be updated to the next spec release, which should include complex numbers
28
33
MIN_VER_FOR_COMPLEX: NominalVersion = "draft"
34
+if len(RELEASED_VERSIONS) > 1:
35
+ assert MIN_VER_FOR_COMPLEX == RELEASED_VERSIONS[1]
36
37
38
def installed_array_modules() -> Dict[str, EntryPoint]:
0 commit comments