code: def format(self, typedval):
          'Return displayable string of `typedval` according to `Column.fmtstr`'
          if typedval is None:
              return None
  
          if isinstance(typedval, (list, tuple)):
              return '[%s]' % len(typedval)
          if isinstance(typedval, dict):
              return '{%s}' % len(typedval)
          if isinstance(typedval, bytes):
              typedval = typedval.decode(options.encoding, options.encoding_errors)
  
          return getType(self.type).formatter(self.fmtstr, typedvalf format(self, typedval):
          'Return displayable string of `typedval` according to `Column.fmtstr`'
          if typedval is None:
              return None
  
          if isinstance(typedval, (list, tuple)):
              return '[%s]' % len(typedval)
          if isinstance(typedval, dict):
              return '{%s}' % len(typedval)
          if isinstance(typedval, bytes):
              typedval = typedval.decode(options.encoding, options.encoding_errors)
  
          return getType(self.type).formatter(self.fmtstr, typedval)
docs: Return displayable string of `typedval` according to `Column.fmtstr`