docs: def _format_num(self, value):
          """Return the number value for value, given this field's `num_type`."""
          # (value is True or value is False) is ~5x faster than isinstance(value, bool)
          if value is True or value is False:
              raise TypeError('value must be a Number, not a boolean.')
          return self.num_type(value)