code: def float_format(self, value):
          
          if isinstance(value, str):
              # Duck-test the format string; raise ValueError on fail
              '{0:{1}}'.format(1.23, value)
  
              self._float_format = value
          else:
              raise TypeError('Floating point format code must be a string.')
docs: Validate and set the upper case flag.