class_docstr: Generic superclass for strategies which produce floats.
class_docstr_tok: ["Generic","superclass","for","strategies","which","produce","floats","."]
code: def permitted(self, f):
      assert isinstance(f, float)
      if not self.allow_infinity and math.isinf(f):
          return False
      if not self.allow_nan and math.isnan(f):
          return False
      if self.width < 64:
          try:
              float_of(f, self.width)
              return True
          except OverflowError:  # pragma: no cover
              return False
      return True
  
imports: from __future__ import absolute_import, division, print_function
  import math
  import hypothesis.internal.conjecture.floats
  import hypothesis.internal.conjecture.utils
  from hypothesis.control import assume, reject
  from hypothesis.internal.conjecture.utils import calc_label_from_name
  from hypothesis.internal.floats import float_of
  from hypothesis.strategies._internal.strategies import SearchStrategy
label_desc: Use image node_id 3 for calling the FloatStrategy obj's underlying member method code with example usage: obj.permitted(f) and returns: True, False, False, True, False