Skip to content

Commit 795fd04

Browse files
committed
Minor doc fixes
1 parent 5a9ea21 commit 795fd04

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

array_api_tests/test_special_cases.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ class BoundFromDtype(FromDtypeFunc):
241241
242242
is equivalent to
243243
244-
>>> strategy = lambda d: st.integers(
245-
... math.ceil(xp.finfo(d).min), math.floor(xp.finfo(d).max)
244+
>>> strategy = st.integers(
245+
... math.ceil(xp.finfo(xp.float64).min), math.floor(xp.finfo(xp.float64).max)
246246
... )
247247
248248
i.e. a strategy that generates integers (within the dtype's range)
@@ -1027,10 +1027,8 @@ def parse_binary_docstring(docstring: str) -> List[BinaryCase]:
10271027
... For floating-point operands,
10281028
...
10291029
... - If either ``x1_i`` or ``x2_i`` is ``NaN``, the result is ``NaN``.
1030-
... - If ``x1_i`` is ``+infinity`` and ``x2_i`` is not ``NaN``, the
1031-
... result is ``+infinity``.
1032-
... - If ``x1_i`` is not ``NaN`` and ``x2_i`` is ``+infinity``, the
1033-
... result is ``+infinity``.
1030+
... - If ``x1_i`` is ``+infinity`` and ``x2_i`` is not ``NaN``, the result is ``+infinity``.
1031+
... - If ``x1_i`` is not ``NaN`` and ``x2_i`` is ``+infinity``, the result is ``+infinity``.
10341032
...
10351033
... Parameters
10361034
... ----------

0 commit comments

Comments
 (0)