Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
JoyThief v0.5.0 documentation
JoyThief v0.5.0 documentation
  • joythief package
    • joythief.core module
    • joythief.numbers module
    • joythief.objects module
    • joythief.strings module
Back to top
View this page

joythief.numbers module¶

Matchers for numeric types (e.g. float).

class joythief.numbers.NaN[source]¶

Bases: Matcher[Real]

Matches any float instance 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.nan or float("nan") using math.isnan().

Originally formulated for this answer.

Next
joythief.objects module
Previous
joythief.core module
Copyright © 2025, Jonathan Sharpe
Made with Sphinx and @pradyunsg's Furo
On this page
  • joythief.numbers module
    • NaN