@@ -228,7 +228,7 @@ class BoundFromDtype(FromDtypeFunc):
228228
229229 >>> strategy = xps.from_dtype(xp.float64).filter(lambda i: i != 0)
230230
231- i.e. a strategy that generates any floats except 0
231+ i.e. a strategy that generates any float except +0 and - 0
232232
233233 3. The underlying function that returns an elements strategy from a dtype, e.g.
234234
@@ -245,7 +245,7 @@ class BoundFromDtype(FromDtypeFunc):
245245 ... math.ceil(xp.finfo(d).min), math.floor(xp.finfo(d).max)
246246 ... )
247247
248- i.e. a strategy that generates integers (within the dtypes range)
248+ i.e. a strategy that generates integers (within the dtype's range)
249249
250250 This is useful to avoid translating special case conditions into either a
251251 dict, filter or "base func", and instead allows us to generalise these three
@@ -332,12 +332,12 @@ def parse_cond(cond_str: str) -> Tuple[UnaryCheck, str, FromDtypeFunc]:
332332 e.g.
333333
334334 >>> cond, expr_template, from_dtype = parse_cond('greater than ``0``')
335- >>> expr_template.replace('{}', 'x_i')
336- 'x_i > 0'
337335 >>> cond(42)
338336 True
339337 >>> cond(-128)
340338 False
339+ >>> expr_template.replace('{}', 'x_i')
340+ 'x_i > 0'
341341 >>> strategy = from_dtype(xp.float64)
342342 >>> for _ in range(5):
343343 ... print(strategy.example())
@@ -478,12 +478,12 @@ def parse_result(result_str: str) -> Tuple[UnaryCheck, str]:
478478 e.g.
479479
480480 >>> check_result, expr = parse_result('``42``')
481- >>> expr_template.replace('{}', 'x_i')
482- '42'
483481 >>> check_result(7)
484482 False
485483 >>> check_result(42)
486484 True
485+ >>> expr
486+ '42'
487487
488488 """
489489 if m := r_code .match (result_str ):
0 commit comments