class_docstr: A setting that allows only numeric input
      
class_docstr_tok: ["A","setting","that","allows","only","numeric","input"]
code: def __init__(
      self, text, value=0, minval=None, maxval=None, *args, **kwargs
  ):
      if isinstance(value, str):
          text_value = value
          value = self.str_to_value(value)
      else:
          text_value = self.value_to_str(value)
  
      if kwargs.pop("metadata", False):
          raise ValueError(
              "metadata=True is not a valid argument for a numeric setting."
          )
  
      super(Number, self).__init__(text, text_value, *args, **kwargs)
      self.__default = self.str_to_value(text_value)
      self.__minval = minval
      self.__maxval = maxval
  
file_path: CellProfiler/src/subpackages/core/cellprofiler_core/setting/text/number/_number.py
imports: import logging
  from .._text import Text
  from ..._validation_error import ValidationError
label_desc: Use image node_id 1 to create a new Number object from inherited base classes: Text with example: obj = Number(text, value, minval, maxval)