def __format__(self, fmt):
        value = self.get_value()

        pt = fmt[-1:]  # presentation type
        type_conv = _TYPE_MAP.get(pt, str)

        try:
            return value.__format__(fmt)
        except (ValueError, __HOLE__):
            # TODO: this may be overkill
            return type_conv(value).__format__(fmt)

# end formatutils.py
dataset/ETHPy150Open mahmoud/boltons/boltons/formatutils.py/DeferredValue.__format__