docs: def _validate(self, val):
          """
          Checks that the value is numeric and that it is within the hard
          bounds; if not, an exception is raised.
          """
          if self.allow_None and val is None:
              return
          super(Range, self)._validate(val)
  
          self._checkBounds(val)