joythief.numbers module¶
Matchers for numeric types (e.g. float).
- class joythief.numbers.NaN(*args, **kwargs)[source]¶
-
Matches any
floatinstance representing NaN.IEEE 754 NaN (“not a number”) instances are, by definition, not equal to each other. This matcher compares equal to e.g.
math.nanorfloat("nan")usingmath.isnan().Originally formulated for this answer.
- Parameters:
args (tp.Any)
kwargs (tp.Any)